39 'label' =>
wfMessage(
'createaccountmail' ),
40 'help' =>
wfMessage(
'createaccountmail-help' ),
52 $this->mailpassword =
true;
66 foreach ( $policy[
'policies'] as $p ) {
67 foreach ( [
'MinimalPasswordLength',
'MinimumPasswordLengthToLogin' ] as $check ) {
68 $minLength = max( $minLength, $p[$check][
'value'] ?? $p[$check] ?? 0 );
72 $password = PasswordFactory::generateRandomPasswordString( $minLength );
82 return new self( null );
91 'provider' =>
wfMessage(
'authmanager-provider-temporarypassword' ),
92 'account' =>
new RawMessage(
'$1', [ $this->username ] ),
93 ] + 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()