PhilippC / keepass2android

Password manager app for Android
https://play.google.com/store/apps/details?id=keepass2android.keepass2android
GNU General Public License v3.0
4.74k stars 382 forks source link

[BUG] pCloud login fails when switching to authenticator app #2570

Open MoritzLost opened 6 months ago

MoritzLost commented 6 months ago

Checks

Describe the bug you encountered:

I'm trying to access the database in my pCloud account using the storage type pCloud (Full access). My pCloud account is protected by 2FA, I have the authenticator app on the same phone I'm using KeePass2Android on. Unfortunately, the flow is broken:

  1. Select pCloud (Full Access) as storage type.
  2. Enter your username, then your password. The app asks for the TOTP.
  3. Switch to the authenticator app and copy the TOTP code.
  4. Switch back to KeePass2Android to enter the code. However, the moment I switch back, the login window goes away with a notification bubble saying Login failed.

Describe what you expected to happen:

Since the authenticator app will usually be on the same phone, the login flow needs to support switching to a different app and not abort immediately.

Right now the only way to get this working is to have the database open in KeePass on another device and manually type in the current TOTP code.

What version of Keepass2Android are you using?

1.10-pre

Which version of Android are you on?

14

mariohofmann commented 3 months ago

The same issue is on Android 13