dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(zhtable) Add zh2Hans: '这么' => '这么' for better segmentation
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialChangeEmail.php
diff --git
a/includes/specials/SpecialChangeEmail.php
b/includes/specials/SpecialChangeEmail.php
index
0996de3
..
eae8e3a
100644
(file)
--- a/
includes/specials/SpecialChangeEmail.php
+++ b/
includes/specials/SpecialChangeEmail.php
@@
-154,7
+154,7
@@
class SpecialChangeEmail extends UnlistedSpecialPage {
array( 'wpNewEmail', 'changeemail-newemail', 'email', $this->mNewEmail ),
);
if ( $wgRequirePasswordforEmailChange ) {
array( 'wpNewEmail', 'changeemail-newemail', 'email', $this->mNewEmail ),
);
if ( $wgRequirePasswordforEmailChange ) {
- $items[] = array( 'wpPassword', '
your
password', 'password', $this->mPassword );
+ $items[] = array( 'wpPassword', '
changeemail-
password', 'password', $this->mPassword );
}
$this->getOutput()->addHTML(
}
$this->getOutput()->addHTML(
@@
-213,6
+213,8
@@
class SpecialChangeEmail extends UnlistedSpecialPage {
* @return bool|string true or string on success, false on failure
*/
protected function attemptChange( User $user, $pass, $newaddr ) {
* @return bool|string true or string on success, false on failure
*/
protected function attemptChange( User $user, $pass, $newaddr ) {
+ global $wgAuth;
+
if ( $newaddr != '' && !Sanitizer::validateEmail( $newaddr ) ) {
$this->error( 'invalidemailaddress' );
return false;
if ( $newaddr != '' && !Sanitizer::validateEmail( $newaddr ) ) {
$this->error( 'invalidemailaddress' );
return false;
@@
-248,6
+250,8
@@
class SpecialChangeEmail extends UnlistedSpecialPage {
$user->saveSettings();
$user->saveSettings();
+ $wgAuth->updateExternalDB( $user );
+
return $status->value;
}
}
return $status->value;
}
}