$this->getOutput()->returnToMain();
}
- function canChangePassword( User $user ) {
+ protected function canChangePassword( User $user ) {
global $wgPasswordResetRoutes, $wgAuth;
// Maybe password resets are disabled, or there are no allowable routes
if ( !is_array( $wgPasswordResetRoutes ) ||
- !in_array( true, array_values( $wgPasswordResetRoutes ) ) ) {
+ !in_array( true, array_values( $wgPasswordResetRoutes ) ) )
+ {
return 'passwordreset-disabled';
}
return true;
}
-
/**
* Hide the password reset page if resets are disabled.
* @return Bool
return false;
}
-}
\ No newline at end of file
+}