Skip to content

Fix multiple accounts - #7070

Draft
mahibi wants to merge 2 commits into
masterfrom
fixMultipleAccounts
Draft

mahibi wants to merge 2 commits into
masterfrom
fixMultipleAccounts

Conversation

@mahibi

@mahibi mahibi commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

WIP

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

The account verification always inserted a new user row, while the check
whether the account already exists only runs once, before the verification
starts. A verification that ran again for the same login, e.g. because the
verification screen was recreated or started a second time, stored the same
account twice, with the same app password.

storeProfile() now updates the account with the same username and server
instead of inserting another one. An account scheduled for deletion is not
reused, and an existing account keeps its active state. The lookup and the
insert are serialized, so two verifications running at the same time cannot
both insert the account.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
The login result stays in the view model of the login screen, and is
collected again whenever the screen is started. Going back from the
verification to the login screen started the verification of the same
login again.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
@mahibi mahibi self-assigned this Nov 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Codacy

Lint

TypemasterPR
Warnings1716
Errors00

SpotBugs

CategoryBaseNew
Bad practice77
Correctness88
Dodgy code4040
Internationalization33
Malicious code vulnerability33
Performance77
Security1111
Total7979

@github-actions

Copy link
Copy Markdown
Contributor

📱 QA build

Download app-qa-debug.apk
QR code Open the QR code for this download
Commit 37ce44c
Version 7070
Available until 7 days after this build

The QA build installs alongside a released Nextcloud app, so you can keep
using your existing install while testing.

Downloading the file requires a GitHub account, so open this link on the
device you want to test on, or transfer the APK to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant