matteo-convertino / otpmanager-app

Nextcloud app that allows you to manage your OTP (TOTP/HOTP) codes easily
24 stars 7 forks source link

Import from google authenticator not working #9

Closed J-Bu closed 1 year ago

J-Bu commented 1 year ago

Hi,

I tried to import the accounts from google authenticator but it does not work, after clicking "Import OTP" in the OTP Manager App a Scan QR code view opens but it is not able to scan the QR code generated by the google authenticator when using the Transfer Accounts feature.

Anything I can do to help debug the problem?

matteo-convertino commented 1 year ago

Hi, strange problem. It might be helpful if you send me the log file. You can download it by going to Settings -> Top right corner. However, as soon as possible I will do some tests with the import (I hope it is not caused by the fact that google authenticator has changed something in its export, although this is very unlikely)

nextgen-networks commented 1 year ago

Hello @matteo-convertino, thanks for helping with the app token issue - this seems to be fixed :-) Now facing the same issue like @J-Bu.

I also tried to generate the log from the setting menu you mentioned. Sadly this generates an empty file (0 byte - tried two times).

Is there an other option how to support you in bug hunting/solving this?

Thanks for your hard work for this cool app that could be a huge benefit for the nexcloud ecosystem!

matteo-convertino commented 1 year ago

I'm glad you like the app and that the login problem with the token app is solved.

Unfortunately, if the log file is empty, the only thing that can be done is for me to try the import myself. I'll let you know as soon as I have news.

matteo-convertino commented 1 year ago

I just did a test and noticed that there was actually a problem when I was trying to import an account with just the name. Basically instead of having the account on google authenticator with name: issuer or name (issuer) but only name. Do you also have a situation like this? @nextgen-networks @J-Bu

J-Bu commented 1 year ago

What I did was navigating in the Google Authenticator app to the transfer account menu entry and tried to scan that QR code.

The screenshots are in German but I didn't find a setting to change the language, not quite sure what you mean with name: issuer or name (issuer) 23-09-25 23-29-34 6387 23-09-25 23-29-44 6388

matteo-convertino commented 1 year ago

By name and issuer I mean this:

1 2

The account in the second image has no issuer, this could be one of the reasons why it wasn't letting you import. If you confirm that you have even just one account in this way (without issuer) I can publish the new version where the problem is solved. Otherwise I prefer to solve the problem completely before publishing it.

J-Bu commented 1 year ago

Yes I have 5 accounts without an issuer

matteo-convertino commented 1 year ago

You can find the new version here or on the play store when Google approves it (I think it will be available tomorrow).

Let me know if the problem persists.

matteo-convertino commented 1 year ago

For now I'm closing the issue, if you continue to have the problem reopen it without any problems

J-Bu commented 1 year ago

I can confirm that importing now worked for me with the new version.

Thanks for the quick fix and the nice app you developed.