Skip to content

History of commits

4473 commits

fix(admin): keep the staff out of the cleanup of inactive users

The cleanup removed every account registered half a year ago, not seen for five months and with next to nothing written, administrators and moderators included. An account holding a role in force is no longer one of them.
simba77 ২৪ অক্টো ২০২৬, রাত ১১:৩৪ সময় Branch: 10.x a6d6f4b

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 ২৪ অক্টো ২০২৬, রাত ১১:৩১ সময় Branch: 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 ২৪ অক্টো ২০২৬, রাত ১১:১৭ সময় Branch: 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 ২৪ অক্টো ২০২৬, রাত ১১:১৭ সময় Branch: 10.x c7de9a5

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 ২৪ অক্টো ২০২৬, রাত ১০:৫৬ সময় Branch: 10.x 834bcf3

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 ২৪ অক্টো ২০২৬, রাত ১০:৪৭ সময় Branch: 10.x d2fc5da