История коммитов

simba77
fix(auth): refuse to browse as an account that cannot sign in
An account not approved yet, or one that has to confirm its e-mail first, would be treated by the site as a guest, so browsing as it showed a site nobody sees. The refusal names the reason. RegistrationSettings tells whether the e-mail has to be confirmed and whether an account still has to confirm it.
simba77
chore(i18n): refresh the source references of the profile view
simba77
chore(i18n): translate the users section of the panel into Russian
The strings already translated in the profile are reused for every language that has them. The tests read the expected messages through the translations, so they do not depend on the language of the run.
simba77
refactor(users): store the female gender as f and keep the genders in one list
Johncms\Users\Gender lists the genders: the forms of registration, the profile and the panel are built from it and checked by it, and User::$gender reads the gender of an account. A migration turns 'zh' into 'f'; the demo user Maria, stored with 'f' by the installer, now reads as female.
simba77
fix(install): give the demo user Maria the female gender
The demo data stored the gender 'f', which the site does not know. A migration turns 'f' into 'zh' on the sites installed already.
simba77
fix(auth): mail a recovered password of 6 characters
The same length registration asks for.
simba77
fix(profile): require a password of at least 6 characters
The same length registration and the panel ask for.
simba77
fix(admin): do not ask the owner for the current password in the panel
A session of the staff already reaches the account in other ways, so the check protected nothing. Signing out on the other devices still keeps the current session.
simba77
fix(admin): make icon buttons as tall as the buttons beside them
An icon alone sets no line of text, so the height of .btn-icon is set as its width. The actions menu of the page of an account takes the regular size.
simba77
feat(admin): change one's own password in the panel
The owner of the account is asked for the current password, and signing out on the other devices keeps the current session.