35 $req->action = $action;
36 $info[$action] =
$req->getFieldInfo();
42 'No need to retype password on login' );
44 'Domain needed on login' );
46 'Need to retype when creating new password' );
48 'Domain needed on account creation' );
50 'Need to retype when changing password' );
52 'Domain not needed on account creation' );
57 'Password field for change is differentiated from login'
62 'Password field for change is differentiated from create'
67 'Retype field for change is differentiated from create'
72 $domainList = [
'domainList' => [
'd1',
'd2' ] ];
74 'Empty request, login' => [
79 'Empty request, change' => [
84 'Empty request, remove' => [
89 'Username + password, login' => [
91 $data = [
'username' =>
'User',
'password' =>
'Bar' ],
94 'Username + password + domain, login' => [
96 $data = [
'username' =>
'User',
'password' =>
'Bar',
'domain' =>
'd1' ],
99 'Username + password + bad domain, login' => [
101 $data = [
'username' =>
'User',
'password' =>
'Bar',
'domain' =>
'd5' ],
104 'Username + password + domain, change' => [
106 [
'username' =>
'User',
'password' =>
'Bar',
'domain' =>
'd1' ],
109 'Username + password + domain + retype' => [
111 [
'username' =>
'User',
'password' =>
'Bar',
'retype' =>
'baz',
'domain' =>
'd1' ],
115 'Username empty, login' => [
117 [
'username' =>
'',
'password' =>
'Bar',
'domain' =>
'd1' ],
120 'Username empty, change' => [
122 [
'username' =>
'',
'password' =>
'Bar',
'retype' =>
'baz',
'domain' =>
'd1' ],
126 'Password empty, login' => [
128 [
'username' =>
'User',
'password' =>
'',
'domain' =>
'd1' ],
131 'Password empty, login, with retype' => [
133 [
'username' =>
'User',
'password' =>
'',
'retype' =>
'baz',
'domain' =>
'd1' ],
138 [
'username' =>
'User',
'password' =>
'Bar',
'retype' =>
'',
'domain' =>
'd1' ],
147 $req->username =
'UTSysop';
153 $this->
assertSame(
'authmanager-provider-password-domain',
$ret[
'provider']->getKey() );
156 $this->
assertSame(
'authmanager-account-password-domain',
$ret[
'account']->getKey() );
157 $this->
assertSame( [
'UTSysop',
'd2' ],
$ret[
'account']->getParams() );
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
AuthManager \MediaWiki\Auth\PasswordDomainAuthenticationRequest.
testDescribeCredentials()
static provideGetFieldInfo()
getInstance(array $args=[])
provideLoadFromSubmission()
This is a value object for authentication requests with a username, password, and domain.
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
$data
Utility to generate mapping file used in mw.Title (phpCharToUpper.json)
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))