53 'label' =>
wfMessage(
'createaccountmail' ),
54 'help' =>
wfMessage(
'createaccountmail-help' ),
66 $this->mailpassword =
true;
80 foreach ( $policy[
'policies'] as $p ) {
81 foreach ( [
'MinimalPasswordLength',
'MinimumPasswordLengthToLogin' ] as $check ) {
82 $minLength = max( $minLength, $p[$check][
'value'] ?? $p[$check] ?? 0 );
96 $request =
new self( null );
106 'provider' =>
wfMessage(
'authmanager-provider-temporarypassword' ),
107 'account' =>
new RawMessage(
'$1', [ $this->username ] ),
108 ] + parent::describeCredentials();
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
A class containing constants representing the names of configuration variables.
const MinimalPasswordLength
Name constant for the MinimalPasswordLength setting, for use with Config::get()
const PasswordPolicy
Name constant for the PasswordPolicy setting, for use with Config::get()
Factory class for creating and checking Password objects.
static generateRandomPasswordString(int $minLength=10)
Generate a random string suitable for a password.