openfactory-ch / whmcs-oath-addon

Google Authenticator (OATH) addon for WHMCS 6+ for admin and client area.
19 stars 20 forks source link

Google Authenticator was unable to read the code #11

Open pcdog opened 7 years ago

pcdog commented 7 years ago

one of my users got the error message from Google Authenticator that "Is unable to interpret this code"

In German, it was "Code kann nicht ausgewertet werden"

My WHMCS version is the newest 7.1

entering the code from hand worked

wzul commented 7 years ago

I don't face the issue. Btw, I have update the Google Authenticator class with the latest one. Don't know if this have an effect on this issue or not. I have upload it to my repo too! :)

dionysius commented 7 years ago

@wzul can you open a pull request please @pcdog can you somehow make a screenshot of that image so I can investigate?

pcdog commented 7 years ago

Will do, need the colleague back in the office tomorrow ;)

wzul commented 7 years ago

@dionysius will do. But,

Is that ok? I am new to git. Teach me please :)

dionysius commented 7 years ago

@wzul then it is difficult :) no problemo, I'll have a look myself

jozephbrasil commented 7 years ago

@wzul send us the code then we can PR the code. There is instructions on github that help make this easier. I am on phone now and as soon as possible I will send you links with help. Basically you need to fork and and send a PR after changes.

wzul commented 7 years ago

@dionysius @jozephbrasil

Sorry for late. You have found my code and it was sent to pull request.

Thank you :)

dionysius commented 7 years ago

I've merged the pull request of wzul so you might test it when I release the next version. If it fails: please provide (e.g. from a dummy account for privacy reasons) a screenshot of the qr-code

007basaran commented 7 years ago

Hello,

Go whmcs module folder.

/htdocs/modules/addons/oath

Open the clientareaoath.tpl with notepad++

Find This Line : <img src="{$modulelink}&qr=1&secret={$secret}" />

Change TO : <img width="177" height="177" src="{$modulelink}&qr=1&secret={$secret}" />

Return oauth page and CTRL + F5 flush page. Authenticator will work this time.

Regards.