51 'label' =>
wfMessage(
'createaccountmail' ),
52 'help' =>
wfMessage(
'createaccountmail-help' ),
64 $this->mailpassword =
true;
78 foreach ( $policy[
'policies'] as $p ) {
79 foreach ( [
'MinimalPasswordLength',
'MinimumPasswordLengthToLogin' ] as $check ) {
80 $minLength = max( $minLength, $p[$check][
'value'] ?? $p[$check] ?? 0 );
84 $password = \PasswordFactory::generateRandomPasswordString( $minLength );
94 $request =
new self( null );
104 'provider' =>
wfMessage(
'authmanager-provider-temporarypassword' ),
105 'account' => new \RawMessage(
'$1', [ $this->username ] ),
106 ] + 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()