|
MediaWiki
REL1_19
|
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. | |
| preText () | |
| Add pre- or post-text to the form. | |
Private Attributes | |
| $result | |
Special page for requesting a password reset email.
Definition at line 29 of file SpecialPasswordReset.php.
Definition at line 41 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 97 of file SpecialPasswordReset.php.
References HTMLForm\setSubmitText(), and wfMessage().

| SpecialPasswordReset::canChangePassword | ( | User $ | user | ) | [protected] |
Definition at line 290 of file SpecialPasswordReset.php.
References $wgAuth, $wgPasswordResetRoutes, and User\isBlocked().
Referenced by checkExecutePermissions(), isListed(), and userCanExecute().


Called from execute() to check if the given user can perform this action.
Failures here must throw subclasses of ErrorPageError.
| $user | User |
| ErrorPageError |
Reimplemented from FormSpecialPage.
Definition at line 49 of file SpecialPasswordReset.php.
References canChangePassword().

| SpecialPasswordReset::getFormFields | ( | ) | [protected] |
Get an HTMLForm descriptor array.
Reimplemented from FormSpecialPage.
Definition at line 60 of file SpecialPasswordReset.php.
References $wgAuth, $wgPasswordResetRoutes, and SpecialPage\getUser().

Hide the password reset page if resets are disabled.
Reimplemented from SpecialPage.
Definition at line 318 of file SpecialPasswordReset.php.
References canChangePassword(), and SpecialPage\getUser().

| 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 |
Reimplemented from FormSpecialPage.
Definition at line 123 of file SpecialPasswordReset.php.
References $res, $title, $user, $wgAuth, $wgNewPasswordExpiry, $wgPasswordReminderResendTime, SpecialPage\getRequest(), SpecialPage\getUser(), IP\isValid(), User\newFromName(), User\newFromRow(), Title\newMainPage(), Sanitizer\validateEmail(), wfEscapeWikiText(), wfGetDB(), wfMessage(), and wfRunHooks().

Do something exciting on successful processing of the form, most likely to show a confirmation message.
Reimplemented from FormSpecialPage.
Definition at line 273 of file SpecialPasswordReset.php.
References SpecialPage\getOutput(), SpecialPage\getUser(), and Html\rawElement().

| SpecialPasswordReset::preText | ( | ) | [protected] |
Add pre- or post-text to the form.
Reimplemented from FormSpecialPage.
Definition at line 101 of file SpecialPasswordReset.php.
References $wgPasswordResetRoutes, and wfMessage().

| 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 45 of file SpecialPasswordReset.php.
References canChangePassword().

SpecialPasswordReset::$email [private] |
Definition at line 34 of file SpecialPasswordReset.php.
SpecialPasswordReset::$result [private] |
Definition at line 39 of file SpecialPasswordReset.php.