|
@@ 979-986 (lines=8) @@
|
| 976 |
|
|
| 977 |
|
// Permissions check |
| 978 |
|
$status = $this->checkAccountCreatePermissions( $creator ); |
| 979 |
|
if ( !$status->isGood() ) { |
| 980 |
|
$this->logger->debug( __METHOD__ . ': {creator} cannot create users: {reason}', [ |
| 981 |
|
'user' => $username, |
| 982 |
|
'creator' => $creator->getName(), |
| 983 |
|
'reason' => $status->getWikiText( null, null, 'en' ) |
| 984 |
|
] ); |
| 985 |
|
return AuthenticationResponse::newFail( $status->getMessage() ); |
| 986 |
|
} |
| 987 |
|
|
| 988 |
|
$status = $this->canCreateAccount( $username, User::READ_LOCKING ); |
| 989 |
|
if ( !$status->isGood() ) { |
|
@@ 989-996 (lines=8) @@
|
| 986 |
|
} |
| 987 |
|
|
| 988 |
|
$status = $this->canCreateAccount( $username, User::READ_LOCKING ); |
| 989 |
|
if ( !$status->isGood() ) { |
| 990 |
|
$this->logger->debug( __METHOD__ . ': {user} cannot be created: {reason}', [ |
| 991 |
|
'user' => $username, |
| 992 |
|
'creator' => $creator->getName(), |
| 993 |
|
'reason' => $status->getWikiText( null, null, 'en' ) |
| 994 |
|
] ); |
| 995 |
|
return AuthenticationResponse::newFail( $status->getMessage() ); |
| 996 |
|
} |
| 997 |
|
|
| 998 |
|
$user = User::newFromName( $username, 'creatable' ); |
| 999 |
|
foreach ( $reqs as $req ) { |