Skip to content

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

4473 коммита

test(admin): cover the rules of editing an account and of moderating registrations

Editing: a taken e-mail, the notes without the permission to read them, an editor banned from the site, a short password, the password of somebody else without the permission, the settings of a peer. Registrations: approving all, removing by address and all, and access to the panel being enough to moderate them.
simba77 24 окт 2026 г., 23:31 Ветка: 10.x 8db384c

feat(admin): confirm the e-mail of an account from the panel

When the site requires the confirmation, the list of users gets an "E-mail not confirmed" tab and a state of its own, and such an account is offered "Confirm the e-mail" in the list and on its page (POST /admin/registrations/confirm-email). The account signs in at once and is no longer removed by the cleanup. Browsing as an account that cannot sign in is not offered.
simba77 24 окт 2026 г., 23:17 Ветка: 10.x aa1979e

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 24 окт 2026 г., 23:17 Ветка: 10.x c7de9a5

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 24 окт 2026 г., 22:47 Ветка: 10.x d2fc5da