|
MediaWiki
REL1_23
|
Let users recover their password. More...


Public Member Functions | |
| __construct () | |
| execute ($par) | |
| Main execution point. | |
| onSubmit (array $data) | |
| Process the form on POST submission. | |
| onSuccess () | |
| Do something exciting on successful processing of the form, most likely to show a confirmation message. | |
| requiresUnblock () | |
| Whether this action cannot be executed by a blocked user. | |
| setChangeMessage (Message $msg) | |
| Set a message at the top of the Change Password form. | |
| setOldPasswordMessage ($msg) | |
| Set a message at the top of the Change Password form. | |
Public Attributes | |
| $mDomain | |
Protected Member Functions | |
| alterForm (HTMLForm $form) | |
| Play with the HTMLForm if you need to more substantially. | |
| attemptReset ($oldpass, $newpass, $retype) | |
| checkExecutePermissions (User $user) | |
| Called from execute() to check if the given user can perform this action. | |
| 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'. | |
Protected Attributes | |
| $mOldPassMsg = null | |
| $mPreTextMessage = null | |
| $mUserName | |
Let users recover their password.
Definition at line 29 of file SpecialChangePassword.php.
Definition at line 39 of file SpecialChangePassword.php.
References SpecialPage\listed().
| SpecialChangePassword::alterForm | ( | HTMLForm $ | form | ) | [protected] |
Play with the HTMLForm if you need to more substantially.
| $form | HTMLForm |
Reimplemented from FormSpecialPage.
Definition at line 146 of file SpecialChangePassword.php.
References HTMLForm\addButton(), HTMLForm\addHiddenFields(), HTMLForm\addPreText(), SpecialPage\getRequest(), SpecialPage\getUser(), SpecialPage\msg(), HTMLForm\setHeaderText(), HTMLForm\setId(), HTMLForm\setSubmitTextMsg(), HTMLForm\setTableId(), HTMLForm\setWrapperLegendMsg(), and text.
| SpecialChangePassword::attemptReset | ( | $ | oldpass, |
| $ | newpass, | ||
| $ | retype | ||
| ) | [protected] |
| PasswordError | when cannot set the new password because requirements not met. |
Definition at line 236 of file SpecialChangePassword.php.
References $abortMsg, $e, $user, array(), LoginForm\clearLoginThrottle(), SpecialPage\getLanguage(), SpecialPage\getUser(), global, LoginForm\incLoginThrottle(), SpecialPage\msg(), User\newFromName(), text, and wfRunHooks().
Referenced by onSubmit().
| SpecialChangePassword::checkExecutePermissions | ( | User $ | user | ) | [protected] |
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 53 of file SpecialChangePassword.php.
References SpecialPage\getRequest(), and SpecialPage\requireLogin().
| SpecialChangePassword::execute | ( | $ | par | ) |
Main execution point.
Reimplemented from FormSpecialPage.
Definition at line 47 of file SpecialChangePassword.php.
References FormSpecialPage\$par, and SpecialPage\getOutput().
| SpecialChangePassword::getFormFields | ( | ) | [protected] |
Get an HTMLForm descriptor array.
Reimplemented from FormSpecialPage.
Definition at line 79 of file SpecialChangePassword.php.
References $name, $user, array(), as, LoginForm\getLoginToken(), SpecialPage\getRequest(), SpecialPage\getUser(), global, list, SpecialPage\msg(), LoginForm\setLoginToken(), text, and wfRunHooks().
| SpecialChangePassword::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 309 of file SpecialChangePassword.php.
| SpecialChangePassword::onSubmit | ( | array $ | data | ) |
Process the form on POST submission.
| $data | Array |
Reimplemented from FormSpecialPage.
Definition at line 164 of file SpecialChangePassword.php.
References $e, $query, attemptReset(), LoginForm\getLoginToken(), SpecialPage\getName(), SpecialPage\getOutput(), SpecialPage\getRequest(), SpecialPage\getUser(), global, Title\newFromText(), and Title\newMainPage().
Do something exciting on successful processing of the form, most likely to show a confirmation message.
Reimplemented from FormSpecialPage.
Definition at line 209 of file SpecialChangePassword.php.
References array(), SpecialPage\getContext(), LoginForm\getLoginToken(), SpecialPage\getOutput(), SpecialPage\getRequest(), SpecialPage\getUser(), and LoginForm\setLoginToken().
Whether this action cannot be executed by a blocked user.
Reimplemented from FormSpecialPage.
Definition at line 305 of file SpecialChangePassword.php.
Set a message at the top of the Change Password form.
| Message | $msg | to parse and add to the form header |
Definition at line 66 of file SpecialChangePassword.php.
Set a message at the top of the Change Password form.
| string | $msg | Message label for old/temp password field |
Definition at line 75 of file SpecialChangePassword.php.
| SpecialChangePassword::$mDomain |
Definition at line 31 of file SpecialChangePassword.php.
SpecialChangePassword::$mOldPassMsg = null [protected] |
Definition at line 37 of file SpecialChangePassword.php.
SpecialChangePassword::$mPreTextMessage = null [protected] |
Definition at line 34 of file SpecialChangePassword.php.
SpecialChangePassword::$mUserName [protected] |
Definition at line 31 of file SpecialChangePassword.php.