From: Brion Vibber Date: Wed, 13 Dec 2006 23:32:08 +0000 (+0000) Subject: * (bug 2259) Fix old regression where e-mail addresses were no longer X-Git-Tag: 1.31.0-rc.0~54910 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/categories/modifier.php?a=commitdiff_plain;h=53790000b5e9d6d03507380d97eadeb10d971a91;p=lhc%2Fweb%2Fwiklou.git * (bug 2259) Fix old regression where e-mail addresses were no longer confirmed on login with mailed password. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 1d104d1052..4b2b6ced20 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -304,6 +304,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Made the show change size function work on page moves, page creations, and log entries. Also fixed it in the javascript recentchanges. * (bug 8239) correctly get 50 new contributions when clicking '(50 next)' +* (bug 2259) Fix old regression where e-mail addresses were no longer + confirmed on login with mailed password. == Languages updated == diff --git a/includes/SpecialUserlogin.php b/includes/SpecialUserlogin.php index 29281e64a2..5a0a571067 100644 --- a/includes/SpecialUserlogin.php +++ b/includes/SpecialUserlogin.php @@ -369,10 +369,19 @@ class LoginForm { // people who have been logging in with a temporary // password for some time. // + // As a side-effect, we can authenticate the user's + // e-mail address if it's not already done, since + // the temporary password was sent via e-mail. + // + if( !$u->isEmailConfirmed() ) { + $u->confirmEmail(); + } + // At this point we just return an appropriate code // indicating that the UI should show a password // reset form; bot interfaces etc will probably just // fail cleanly here. + // return self::RESET_PASS; } else { return '' == $this->mPassword ? self::EMPTY_PASS : self::WRONG_PASS;