mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
feat(accounts): a password change card that continues the sign-in
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.
This commit is contained in:
parent
40e3a7dfdd
commit
9809e5b79a
10 changed files with 546 additions and 135 deletions
|
|
@ -29,11 +29,13 @@
|
|||
|
||||
<body class="pb-5"{% block body_attrs %}{% endblock %}>
|
||||
|
||||
{% block navbar %}{# a page that leads nowhere else leaves it out #}
|
||||
{% if request.user.is_authenticated %}
|
||||
{# for the keyboard: past the menu, shown when it has the focus #}
|
||||
<a class="visually-hidden-focusable d-block text-center p-2" href="#main">{% trans "Skip to content" %}</a>
|
||||
{% include 'navbar.html' %}
|
||||
{% endif %}
|
||||
{% endblock navbar %}
|
||||
|
||||
<div role="main" id="main" class="container">
|
||||
{% block page_header %}{# a page with a heading of its own leaves it out #}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue