* (bug 31212) History tab not collapsed when the screen is narrow
* (bug 15521) Use new section summary when the action of adding a new section
also happens to create the page
+* (bug 32960) remove EmailAuthenticationTimestamp from database when a
+ email address is removed
=== API changes in 1.19 ===
* (bug 19838) siprop=interwikimap can now use the interwiki cache.
# The user has supplied a new email address on the login page
# new behaviour: set this new emailaddr from login-page into user database record
$user->setEmail( $newaddr );
- # But flag as "dirty" = unauthenticated
- $user->invalidateEmail();
if ( $wgEmailAuthentication ) {
# Mail a temporary password to the dirty address.
# User can come back through the confirmation URL to re-enable email.
}
$info = 'eauth';
}
- } else {
+ } elseif ( $newaddr != $oldaddr ) { // if the address is the same, don't change it
$user->setEmail( $newaddr );
}
if ( $oldaddr != $newaddr ) {
class PreferencesForm extends HTMLForm {
// Override default value from HTMLForm
protected $mSubSectionBeforeFields = false;
-
+
private $modifiedUser;
public function setModifiedUser( $user ) {
function getBody() {
return $this->displaySection( $this->mFieldTree, '', 'mw-prefsection-' );
}
-
+
/**
* Get the <legend> for a given section key. Normally this is the
* prefs-$key message but we'll allow extensions to override it.
*/
public function setEmail( $str ) {
$this->load();
+ if( $str == $this->mEmail ) {
+ return;
+ }
$this->mEmail = $str;
+ $this->invalidateEmail();
wfRunHooks( 'UserSetEmail', array( $this, &$this->mEmail ) );
}