inbasic / open-two-factor-authenticator

A sync-able open-source two-factor authenticator for Firefox, Opera, Safari, Chrome and Android
http://add0n.com/two-factor-authenticator.html
49 stars 30 forks source link

Can't enter code manually on linux #1

Open bevhost opened 8 years ago

bevhost commented 8 years ago

I added the Application to chrome v48.0.02564.82 on my CentOS EL6 Gnome3 Desktop.

When I try to add a key by manually entering it, after I paste the code, I press ENTER, but nothing happens.

inbasic commented 8 years ago

Can you try adding by QR code screenshot instead? If I remember correctly the Chrome version does not show warnings. I'll fix this soon.

bevhost commented 8 years ago

One of my codes is from screen connect, it does not display a QR code, only the text code.

inbasic commented 8 years ago

I see, okay then please wait for a new days. I am going to push a new update soon. The new version should display some more info if submission failed.

inbasic commented 8 years ago

Please try the new release and let me know if the problem is fixed.

sprinl commented 8 years ago

I have setup your application on a MacBook Pro with OS X 10.11.5. I can setup account by screenshot but the manual input failed. I get the following message: "Cannot read property 'spli'' of undefined"

messageinputmanualkey

I guess that I miss something. In all case, I thank you for your usefull application.

DanielFragaBR commented 8 years ago

I have the same issue. When I enter manually the key, I get:

Secret key starts with "otpauth://totp".

If I put "otpauth://totp" before the key, it gives the error about the url split. It's a bit confusing... any hints?

pifon commented 8 years ago

Great app. It works on one (CentOS), but after re-installing kububtu at home, I cannot add account. Tried added link, screenshot. It just stopps, as if I did not enter anything. Every restart of firefox it tries to create new repository. So I think it is actually never created. Tried to remove it from browser, add it back - nothing helps. May this be some permissions problems?

inbasic commented 8 years ago

@DanielFragaBR here is the format of supported keys; https://github.com/google/google-authenticator/wiki/Key-Uri-Format

inbasic commented 8 years ago

@pifon Can you confirm this on a clean profile? http://blog.add0n.com/2016/01/30/how-to-use-firefox-profile-manager.html

If you want to debug the current profile, open the Console Error (Ctrl + Shift +J). Now try to add a key and see if you get an error in the console.

pifon commented 8 years ago

@inbasic Created new profile, all the same. Selecting qr code does nothing. Checked on console: iotfauthenticator:TypeError: str is null (core.js:106) and then stack trace.

DanielFragaBR commented 8 years ago

@inbasic thanks. I tried:

otpauth://totp/Example:email@gmail.com?secret=XXXXXXXXXXXXXXXXX

and after hitting Enter, nothing happens.

Suggestion: wouldn't it be better to ask just for the secret code instead of forcing the user to type the whole URI?

pkhadka56 commented 7 years ago

Any progress on this as I am also facing similar error as faced by DanielFragaBR. How about

otpauth://totp/SECRET-KEY