|
MediaWiki
REL1_24
|
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. | |
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 | |
| $mDomain | |
| $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.
| HTMLForm | $form |
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] |
| string | $oldpass | |
| string | $newpass | |
| string | $retype |
| PasswordError | When cannot set the new password because requirements not met. |
Definition at line 238 of file SpecialChangePassword.php.
References $abortMsg, $e, $user, array(), LoginForm\clearLoginThrottle(), SpecialPage\getConfig(), SpecialPage\getLanguage(), SpecialPage\getRequest(), SpecialPage\getUser(), 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 54 of file SpecialChangePassword.php.
References SpecialPage\getRequest(), and SpecialPage\requireLogin().
| SpecialChangePassword::execute | ( | $ | par | ) |
Main execution point.
| string | null | $par |
Reimplemented from FormSpecialPage.
Definition at line 48 of file SpecialChangePassword.php.
References FormSpecialPage\$par, and SpecialPage\getOutput().
| SpecialChangePassword::getFormFields | ( | ) | [protected] |
Get an HTMLForm descriptor array.
Reimplemented from FormSpecialPage.
Definition at line 80 of file SpecialChangePassword.php.
References $name, $type, $user, array(), as, SpecialPage\getConfig(), LoginForm\getLoginToken(), SpecialPage\getRequest(), SpecialPage\getUser(), 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 311 of file SpecialChangePassword.php.
| SpecialChangePassword::onSubmit | ( | array $ | data | ) |
Process the form on POST submission.
| array | $data | |
| HTMLForm | $form |
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 208 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 307 of file SpecialChangePassword.php.
Set a message at the top of the Change Password form.
Definition at line 67 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 76 of file SpecialChangePassword.php.
SpecialChangePassword::$mDomain [protected] |
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 30 of file SpecialChangePassword.php.