MediaWiki
REL1_22
|
Special page for requesting a password reset email. More...
Public Member Functions | |
__construct () | |
alterForm (HTMLForm $form) | |
Play with the HTMLForm if you need to more substantially. | |
checkExecutePermissions (User $user) | |
Called from execute() to check if the given user can perform this action. | |
isListed () | |
Hide the password reset page if resets are disabled. | |
onSubmit (array $data) | |
Process the form. | |
onSuccess () | |
Do something exciting on successful processing of the form, most likely to show a confirmation message. | |
userCanExecute (User $user) | |
Checks if the given user (identified by an object) can execute this special page (as defined by $mRestriction). | |
Protected Member Functions | |
canChangePassword (User $user) | |
getFormFields () | |
Get an HTMLForm descriptor array. | |
getGroupName () | |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'. | |
Private Attributes | |
Message | |
User | $firstUser |
Status | $result |
Special page for requesting a password reset email.
Definition at line 29 of file SpecialPasswordReset.php.
Definition at line 42 of file SpecialPasswordReset.php.
SpecialPasswordReset::alterForm | ( | HTMLForm $ | form | ) |
Play with the HTMLForm if you need to more substantially.
$form | HTMLForm |
Reimplemented from FormSpecialPage.
Definition at line 102 of file SpecialPasswordReset.php.
SpecialPasswordReset::canChangePassword | ( | User $ | user | ) | [protected] |
Definition at line 317 of file SpecialPasswordReset.php.
Called from execute() to check if the given user can perform this action.
Failures here must throw subclasses of ErrorPageError.
$user | User |
UserBlockedError |
Reimplemented from FormSpecialPage.
Definition at line 50 of file SpecialPasswordReset.php.
SpecialPasswordReset::getFormFields | ( | ) | [protected] |
Get an HTMLForm descriptor array.
Reimplemented from FormSpecialPage.
Definition at line 61 of file SpecialPasswordReset.php.
SpecialPasswordReset::getGroupName | ( | ) | [protected] |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.
Reimplemented from SpecialPage.
Definition at line 358 of file SpecialPasswordReset.php.
Hide the password reset page if resets are disabled.
Reimplemented from SpecialPage.
Definition at line 350 of file SpecialPasswordReset.php.
SpecialPasswordReset::onSubmit | ( | array $ | data | ) |
Process the form.
At this point we know that the user passes all the criteria in userCanExecute(), and if the data array contains 'Username', etc, then Username resets are allowed.
$data | array |
MWException | |
ThrottledError|PermissionsError |
Reimplemented from FormSpecialPage.
Definition at line 138 of file SpecialPasswordReset.php.
Do something exciting on successful processing of the form, most likely to show a confirmation message.
Reimplemented from FormSpecialPage.
Definition at line 299 of file SpecialPasswordReset.php.
SpecialPasswordReset::userCanExecute | ( | User $ | user | ) |
Checks if the given user (identified by an object) can execute this special page (as defined by $mRestriction).
Can be overridden by sub- classes with more complicated permissions schemes.
$user | User: the user to check |
Reimplemented from SpecialPage.
Definition at line 46 of file SpecialPasswordReset.php.
Message SpecialPasswordReset::$email [private] |
Definition at line 32 of file SpecialPasswordReset.php.
User SpecialPasswordReset::$firstUser [private] |
Definition at line 36 of file SpecialPasswordReset.php.
Definition at line 40 of file SpecialPasswordReset.php.