Note that they show a successful message but wouldn't work since User::saveSettings()
silently fails (maybe the user object at memcached could get updated?).
function execute( $code ) {
global $wgUser, $wgOut;
$this->setHeaders();
+
+ if ( wfReadOnly() ) {
+ $wgOut->readOnlyPage();
+ return;
+ }
+
if( empty( $code ) ) {
if( $wgUser->isLoggedIn() ) {
if( User::isValidEmailAddr( $wgUser->getEmail() ) ) {
function execute( $code ) {
$this->setHeaders();
+
+ if ( wfReadOnly() ) {
+ $wgOut->readOnlyPage();
+ return;
+ }
+
$this->attemptInvalidate( $code );
}
function execute( $par ) {
global $wgOut, $wgRequest, $wgUser;
+ if ( wfReadOnly() ) {
+ $wgOut->readOnlyPage();
+ return;
+ }
+
if( !$this->userCanExecute( $wgUser ) ) {
$this->displayRestrictionError();
return;
function execute( $par ) {
global $wgUser, $wgAuth, $wgOut, $wgRequest;
+ if ( wfReadOnly() ) {
+ $wgOut->readOnlyPage();
+ return;
+ }
+
$this->mUserName = $wgRequest->getVal( 'wpName' );
$this->mOldpass = $wgRequest->getVal( 'wpPassword' );
$this->mNewpass = $wgRequest->getVal( 'wpNewPassword' );