Repository navigation
feat(accounts): a password change card that continues the sign-in - #722
Merged
Merged
Conversation
…n password file test_the_first_login_password_change made the last forced password change with the real BASE_DIR, so the view deleted data/admin_password of the checkout the tests ran in. It now runs under a temporary BASE_DIR, as the other first-login tests do.
The forced first-login change was a plain settings form under a menu whose every link led back to it, asked for an "Old password" the user did not know was the temporary one, and listed Django's four rules as long sentences, with their refusals under the confirmation field. The page is now a card like the sign-in page: "Set your own password", signed in as whom and why, the temporary password named as such, and no menu but a Log out link. A rule list under the two new entries ticks what the browser can check (8 characters, not only digits, both entries match) and says the rest is checked on save; the server's refusals join that list. The eye button shows both new entries. A change chosen from the profile uses the same card with the menu and a Cancel link. base.html gets a navbar block for it. Turkish and Chinese texts.
catborise
force-pushed
the
first-password
branch
from
November 23, 2026 13:28
854c3f9 to
b2e248d
Compare
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.
The forced first-login password change (and the one chosen from the profile) as a card like the sign-in page.
base.htmlgets anavbarblock;static/js/password_change.js(CSP: no inline script). Turkish and Chinese texts.test_the_first_login_password_changedeleted the checkout's realdata/admin_password(it ran the last forced change with the realBASE_DIR); it now uses a temporaryBASE_DIR.Checked at 1440 px and on a 390 px phone, in English, Turkish and Chinese, empty, while typing and after a refusal. Full suite: 3017 tests OK (50 skipped); ruff clean; tr/zh catalogs complete.