2fast-team / 2fast

Two-Factor Authenticator Supporting TOTP (Windows 10 & Android, iOS, Linux and macOS App)
https://2fast-app.de
GNU General Public License v3.0
393 stars 42 forks source link

Constantly Get Password Invalid when trying to load datafile #110

Closed nla-sean closed 3 weeks ago

nla-sean commented 7 months ago

Describe the bug

Profile was migrated and lost access to the 2FA app, but have a backup datafile. Loading this on the start of the app and it accepts password, then complains the "Password invalid". (Can't take screenshot as app blacks out). "The password saved in this app is invalid for the data file. You may have changed the password in another machine for the data file. **Do you want to change the password now?"

I change the password, occasionally the app crashes, otherwise the Accounts section is empty.

Go to settings, and back again and the password invalid box re-appears.

If the app crashes, after re-opening asks to submit bug report with error The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

Steps to Reproduce

See above.

Expected behavior

Load the datafile and if its changing the password, change it and load my codes.

Screenshots

Can't app blacks out on printscreen and snipping.

Environment

App Version(s):

Windows 10/11 Build Number:

Additional context

jp-weber commented 7 months ago

How was the profile migrated? Have the drives changed? The error message is that the file cannot be found. I cannot understand why the dialog for the password error appears in this context.

I would therefore suggest resetting the app and relinking the data file via the initial steps.

Settings / apps / 2fast / expended settings

nla-sean commented 7 months ago

Using a freeware to do the migration, had no other issues with any other apps or data.

Unsure why the file can't be found, its in the same location, and it lets me navigate to it in the app. Same issue occurs when:

I've reset the app, uninstalled and reinstalled the app.

Tried setting up a new datafile and it does the same thing. Seems to be completely broken.

nla-sean commented 7 months ago

The app also self closes when attempting to get permission to access storage.

Grant access and it does appear to continue after starting the app again. Can't imagine that is expected behaviour either.

jp-weber commented 7 months ago

Then something seems to have gone very wrong during the profile migration.

What happen if you open the file via double click? The app should be able to load the file correctly through the file association, as a different routine and authorization applies.

nla-sean commented 7 months ago

Then something seems to have gone very wrong during the profile migration.

What happen if you open the file via double click? The app should be able to load the file correctly through the file association, as a different routine and authorization applies.

That worked.

App still self-closed when clicking on the authorisation button, and the one next to it was pure white.

Seems to be working though :)