Files
sm-user-plugin/controllers/users/config_form.yaml
Jakub Zych 7900f47ba6 feat: password-change hook and the reset-2FA admin slot
The D-07 password-change hook is the existing AccessRevokedEvent, fired
inside the write's transaction by a reset, the user's own change and an
administrator's password; (*AccessRevokedEvent).PasswordChanged reports
those three reasons, and the login rehash fires nothing.

The Users screen declares the record action reset_two_factor (danger)
behind the new permission golem15.users.reset_two_factor, which no role
has by default. It is offered only when a two-factor plugin publishes a
classes.TwoFactorAdmin and the user has a second factor; Run calls the
service's Reset in the action's transaction.
2026-10-26 10:03:59 +01:00

26 lines
761 B
YAML

name: golem15.user::lang.user.label
form: ~/plugins/golem15/user/models/user/fields.yaml
modelClass: Golem15\User\Models\User
defaultRedirect: golem15/user/users
create:
redirect: golem15/user/users/preview/:id
redirectClose: golem15/user/users
update:
redirect: golem15/user/users/update/:id
redirectClose: golem15/user/users/preview/:id
preview:
headerPartial: hint
recordActions: [activate, unban, unsuspend, reset_two_factor]
messages:
create: golem15.user::lang.users.new_user
update: backend::lang.messages.form.update
saved: backend::lang.messages.form.saved
deleteConfirm: golem15.user::lang.users.delete_confirm
deleted: backend::lang.messages.form.deleted
edit: golem15.user::lang.users.update_details