45 'label' =>
wfMessage(
'createaccountmail' ),
46 'help' =>
wfMessage(
'createaccountmail-help' ),
57 $this->mailpassword =
true;
69 $minLength = $config->get(
'MinimalPasswordLength' );
70 $policy = $config->get(
'PasswordPolicy' );
71 foreach ( $policy[
'policies'] as $p ) {
72 foreach ( [
'MinimalPasswordLength',
'MinimumPasswordLengthToLogin' ] as $check ) {
73 $minLength = max( $minLength, $p[$check][
'value'] ?? $p[$check] ?? 0 );
77 $password = \PasswordFactory::generateRandomPasswordString( $minLength );
87 $request =
new self( null );
93 'provider' =>
wfMessage(
'authmanager-provider-temporarypassword' ),
94 'account' => new \RawMessage(
'$1', [ $this->username ] ),
95 ] + parent::describeCredentials();
wfMessage( $key,... $params)
This is the function for getting translated interface messages.