From 514d1bc76d3dec28d0e392a847878a74404f9dee Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Tue, 29 Jul 2014 17:21:10 -0300 Subject: [PATCH] checkTemporaryPassword should call loadPasswords() first Otherwise mNewpassword could be null. Mlpearc reports on irc getting fatals about mNewpassword not being an object. I couldn't reproduce, but loadPasswords() should definitely be called here. Change-Id: I6d1b74b79c87d1a1870971aafd1349255170123d --- includes/User.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/User.php b/includes/User.php index 73d4959ee5..c42f3086b3 100644 --- a/includes/User.php +++ b/includes/User.php @@ -3821,6 +3821,7 @@ class User implements IDBAccessObject { global $wgNewPasswordExpiry; $this->load(); + $this->loadPasswords(); if ( $this->mNewpassword->equals( $plaintext ) ) { if ( is_null( $this->mNewpassTime ) ) { return true; -- 2.20.1