private function assertNotReal() {
global $wgDBprefix;
- if ( $wgDBprefix !== MediaWikiTestCase::DB_PREFIX &&
- $wgDBprefix !== MediaWikiTestCase::ORA_DB_PREFIX
- ) {
+ if ( $wgDBprefix !== MediaWikiTestCase::DB_PREFIX ) {
throw new MWException( "Can't create user on real database" );
}
}
}
$passwordFactory = MediaWikiServices::getInstance()->getPasswordFactory();
- if ( !$passwordFactory->newFromCiphertext( $row->user_password )->equals( $password ) ) {
+ if ( !$passwordFactory->newFromCiphertext( $row->user_password )->verify( $password ) ) {
$passwordHash = $passwordFactory->newFromPlaintext( $password );
$dbw->update(
'user',