29 $policy[
'policies'][
'default'] += [
30 'MinimalPasswordLength' => 1,
31 'MinimalPasswordLengthToLogin' => 1,
38 $this->assertNotSame(
'', $ret1->password );
39 $this->assertNotSame(
'', $ret2->password );
40 $this->assertNotSame( $ret1->password, $ret2->password );
45 $this->assertNull(
$ret->password );
55 'Create, empty request' => [
60 'Create, mailpassword set' => [
62 [
'mailpassword' => 1 ],
71 $req->username =
'UTSysop';
73 $this->assertInternalType(
'array',
$ret );
74 $this->assertArrayHasKey(
'provider',
$ret );
75 $this->assertInstanceOf( \Message::class,
$ret[
'provider'] );
76 $this->assertSame(
'authmanager-provider-temporarypassword',
$ret[
'provider']->getKey() );
77 $this->assertArrayHasKey(
'account',
$ret );
78 $this->assertInstanceOf( \Message::class,
$ret[
'account'] );
79 $this->assertSame( [
'UTSysop' ],
$ret[
'account']->getParams() );
$wgPasswordPolicy
Password policy for local wiki users.
this hook is for auditing only $req
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses & $ret
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))