class PasswordAction

Constants

PASSWORD_FIELD

PASSWORD_CONFIRM_FIELD

PASSWORD_CHECK_FIELD

Properties

AdministrationController $mod

Methods

addPasswordChangeFieldsToForm(Form $form, User|null $user = null)

Adds password and password repeat fields to the given $form. $user has to be set, if this password field is for an existing user.

array
checkPasswordStrengthInForm(Form $form)

Checks the password strength for the previously generated password fields in addPasswordChangeFieldsToForm() or getPasswordChangeFdl()

array
getPasswordChangeFdl(User|null $user)

Generates the FDL for the password and password repeat fields for a $user

array
validatePasswordStrength(string $password, string $password_confirm)

Checks the password strength for the give passwords based on config settings

Details

at line 31
Form addPasswordChangeFieldsToForm(Form $form, User|null $user = null)

Adds password and password repeat fields to the given $form. $user has to be set, if this password field is for an existing user.

Parameters

Form $form
User|null $user

Return Value

Form

Exceptions

JsonException

at line 100
array checkPasswordStrengthInForm(Form $form)

Checks the password strength for the previously generated password fields in addPasswordChangeFieldsToForm() or getPasswordChangeFdl()

Parameters

Form $form

Return Value

array

at line 46
array getPasswordChangeFdl(User|null $user)

Generates the FDL for the password and password repeat fields for a $user

Parameters

User|null $user

Return Value

array

Exceptions

JsonException

at line 115
array validatePasswordStrength(string $password, string $password_confirm)

Checks the password strength for the give passwords based on config settings

Parameters

string $password
string $password_confirm

Return Value

array