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 );
86 $password = PasswordFactory::generateRandomPasswordString( $minLength );
96 return new self( null );
105 'provider' =>
wfMessage(
'authmanager-provider-temporarypassword' ),
106 'account' =>
new RawMessage(
'$1', [ $this->username ] ),
107 ] + 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 PasswordPolicy
Name constant for the PasswordPolicy setting, for use with Config::get()