31 $createReq, $maybeLink,
$username, $loginState, $createState, $createPrimaryState
39 $this->assertSame( $createPrimaryState,
46 $req2->username =
'Bob';
49 'Nothing' => [
null, [],
null,
false,
false,
false ],
50 'Link, no create' => [
null, [ $req2 ],
null,
true,
true,
false ],
51 'No link, create but no name' => [ $req1, [],
null,
false,
true,
true ],
52 'Link and create but no name' => [ $req1, [ $req2 ],
null,
true,
true,
true ],
53 'No link, create with name' => [ $req2, [],
'Bob',
false,
true,
true ],
54 'Link and create with name' => [ $req2, [ $req2 ],
'Bob',
true,
true,
true ],
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 just before the function returns a value If you return true
this hook is for auditing only or null if authentication failed before getting that far $username
processing should stop and the error should be shown to the user * false