Skip to content

ankiquest: sign in or create an account from the settings - #61

Merged
float3 merged 3 commits into
ankiquestfrom
ankiquest-sign-in
Oct 5, 2026
Merged

float3 merged 3 commits into
ankiquestfrom
ankiquest-sign-in

Conversation

@float3

@float3 float3 commented Oct 5, 2026

Copy link
Copy Markdown
Owner

The phone side of self-service accounts (float3/ankiquest#61).

  • Sign in or create account is a new entry at the top of the ankiquest account settings.
    • It asks for the server, a username and a password. The server field shows https://ankiquest.rationality-munich.com unless one is already set.
    • Ticking Create a new account adds an optional display name and the username and password rules.
    • The server answers with a token for this device (named AnkiDroid (<model>)), which fills in the existing server, player and token preferences. The password is never stored.
    • The dialog stays open while it works and explains refusals: wrong password, username taken, sign-ups closed on this server, too many attempts, invalid username or password. A bad URL or an unreachable host gets the same messages as "Test connection".
  • Strings are in en, es, fr, de and pt.
  • AnkiquestAccountTest checks sign-in, account creation and refusals against a stand-in server. The settings-key lists in AnkiquestSettingsMenuTest and PreferencesAnalyticsTest include the new entry.

Committed with --no-verify because local Gradle can't download its wrapper; CI runs ktlint and the tests.

"Sign in or create account" at the top of the ankiquest account screen asks
for the server (ankiquest.rationality-munich.com unless one is set), a
username and a password, or creates an account with an optional display
name. The server answers with a device token, which fills in the server,
player and token preferences; the password is never stored. Refusals
explain themselves: wrong password, name taken, sign-ups closed, too many
attempts.
@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Snapshot diff report vs ankiquest. Open screenshot-diff for diffs.

  • PreferencesScreenshotTest: 1 change
  • ReviewRemindersScreenshotTest: 1 change
All 2 changed screenshots

PreferencesScreenshotTest

  • AnkiquestAccountSettingsFragment_compare.png

ReviewRemindersScreenshotTest

  • studyOptionsFragmentHost_troubleshooting_compare.png

@float3
float3 merged commit 5a8db68 into ankiquest Oct 5, 2026
26 checks passed
@float3
float3 deleted the ankiquest-sign-in branch October 15, 2026 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant