| @@ 175-189 (lines=15) @@ | ||
| 172 | return !$this->getPassword( $row->user_password ) instanceof \InvalidPassword; |
|
| 173 | } |
|
| 174 | ||
| 175 | public function testUserExists( $username, $flags = User::READ_NORMAL ) { |
|
| 176 | $username = User::getCanonicalName( $username, 'usable' ); |
|
| 177 | if ( $username === false ) { |
|
| 178 | return false; |
|
| 179 | } |
|
| 180 | ||
| 181 | list( $db, $options ) = \DBAccessObjectUtils::getDBOptions( $flags ); |
|
| 182 | return (bool)wfGetDB( $db )->selectField( |
|
| 183 | [ 'user' ], |
|
| 184 | [ 'user_id' ], |
|
| 185 | [ 'user_name' => $username ], |
|
| 186 | __METHOD__, |
|
| 187 | $options |
|
| 188 | ); |
|
| 189 | } |
|
| 190 | ||
| 191 | public function providerAllowsAuthenticationDataChange( |
|
| 192 | AuthenticationRequest $req, $checkData = true |
|
| @@ 190-204 (lines=15) @@ | ||
| 187 | return true; |
|
| 188 | } |
|
| 189 | ||
| 190 | public function testUserExists( $username, $flags = User::READ_NORMAL ) { |
|
| 191 | $username = User::getCanonicalName( $username, 'usable' ); |
|
| 192 | if ( $username === false ) { |
|
| 193 | return false; |
|
| 194 | } |
|
| 195 | ||
| 196 | list( $db, $options ) = \DBAccessObjectUtils::getDBOptions( $flags ); |
|
| 197 | return (bool)wfGetDB( $db )->selectField( |
|
| 198 | [ 'user' ], |
|
| 199 | [ 'user_id' ], |
|
| 200 | [ 'user_name' => $username ], |
|
| 201 | __METHOD__, |
|
| 202 | $options |
|
| 203 | ); |
|
| 204 | } |
|
| 205 | ||
| 206 | public function providerAllowsAuthenticationDataChange( |
|
| 207 | AuthenticationRequest $req, $checkData = true |
|