r43392 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43391‎ | r43392 | r43393 >
Date:17:55, 11 November 2008
Author:laner
Status:old
Tags:
Comment:
Automatically confirm email if we are setting the user's email address from LDAP.
Modified paths:
  • /trunk/extensions/LdapAuthentication/LdapAuthentication.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LdapAuthentication/LdapAuthentication.php
@@ -964,6 +964,7 @@
965965 if ( '' != $this->email ) {
966966 $this->printDebug( "Setting email.", NONSENSITIVE );
967967 $user->setEmail( $this->email );
 968+ $user->confirmEmail();
968969 }
969970 if ( ( isset( $wgLDAPUniqueBlockLogin[$_SESSION['wsDomain']] ) && $wgLDAPUniqueBlockLogin[$_SESSION['wsDomain']] )
970971 || ( isset( $wgLDAPUniqueRenameUser[$_SESSION['wsDomain']] ) && $wgLDAPUniqueRenameUser[$_SESSION['wsDomain']] ) ) {

Status & tagging log