From: Peter Gehres Date: Wed, 1 May 2013 22:17:02 +0000 (-0700) Subject: Unsetting the email address for a user when the email address is invalidated. X-Git-Tag: 1.31.0-rc.0~14689^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=efa4652fcf8004413875debdc42524e80404323c;p=lhc%2Fweb%2Fwiklou.git Unsetting the email address for a user when the email address is invalidated. Change-Id: I2a8445745f04540e7962695c3116bb247d81fd94 --- diff --git a/includes/User.php b/includes/User.php index d114b994ef..1312104545 100644 --- a/includes/User.php +++ b/includes/User.php @@ -2191,8 +2191,8 @@ class User { if ( $str == $this->mEmail ) { return; } - $this->mEmail = $str; $this->invalidateEmail(); + $this->mEmail = $str; wfRunHooks( 'UserSetEmail', array( $this, &$this->mEmail ) ); } @@ -3748,6 +3748,7 @@ class User { $this->mEmailToken = null; $this->mEmailTokenExpires = null; $this->setEmailAuthenticationTimestamp( null ); + $this->mEmail = ''; wfRunHooks( 'InvalidateEmailComplete', array( $this ) ); return true; }