}
$pwhash = $this->getPassword( $row->user_newpassword );
- if ( !$pwhash->equals( $req->password ) ) {
+ if ( !$pwhash->verify( $req->password ) ) {
return $this->failResponse( $req );
}
if ( $sendMail ) {
// Send email after DB commit
- $dbw->onTransactionIdle(
+ $dbw->onTransactionCommitOrIdle(
function () use ( $req ) {
/** @var TemporaryPasswordAuthenticationRequest $req */
$this->sendPasswordResetEmail( $req );
if ( $mailpassword ) {
// Send email after DB commit
- wfGetDB( DB_MASTER )->onTransactionIdle(
+ wfGetDB( DB_MASTER )->onTransactionCommitOrIdle(
function () use ( $user, $creator, $req ) {
$this->sendNewAccountEmail( $user, $creator, $req->password );
},