[BUG] Re-login on servers with 2FA
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 4.2k
- Forks
- 3.1k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 7
Description
Actual behaviour
After the user has entered their username and password on a server with 2FA, the app requests an authentication code to proceed with the login. When the user leaves the app to retrieve this code from another application and then returns, the screen resets, forcing the user to re-enter their credentials.
Expected behaviour
The app should show the same screen (code to log in) when the user reopens the app to enter the 2FA code.
Steps to reproduce
- Log in to a server with 2FA
- Minimize the oC app to get the request code
- Reopen the app to enter the code
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are identified in the issue. Reproduce the login flow with a server using 2FA, then inspect the Android login and app-lifecycle entry points to find where the pending authentication state is lost; done means returning from another app preserves the 2FA code screen without re-entering credentials.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- authentication, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100