Repository navigation
[Mobile] Profile and account settings - #31
Merged
Merged
Conversation
Closes #15. Password change and "sign out everywhere" both invalidate every token including this device's, and both hand back a replacement. Adopting it is what keeps you signed in to the account you just secured -- there is a test that pins the old token being dead and the new one working. The current-password field appears only once the email address is actually edited, because that is the single case the server demands it; asking for it unconditionally would imply the whole form needs it. The email toggle is disabled and explained where the instance has no SMTP configured. Leaving it live would mean a switch that silently does nothing. Switching instance clears the stored URL and the session, and that is the whole of it -- the base URL is resolved per request, so nothing is rebuilt or restarted. Username validation mirrors the backend's pattern so the form answers rather than a round trip. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #15.
Password change and "sign out everywhere" both invalidate every token including this device's, and both hand back a replacement. Adopting it is what keeps you signed in to the account you just secured — there is a test pinning the old token being dead and the new one working.
The current-password field appears only once the email address is actually edited, because that is the single case the server demands it.
The email toggle is disabled and explained where the instance has no SMTP configured. Leaving it live would mean a switch that silently does nothing.
Switching instance clears the stored URL and the session, and that is the whole of it — the base URL is resolved per request, so nothing is rebuilt or restarted.