$adminConfig
$adminConfig : \Charcoal\Admin\Config
Store a reference to the admin configuration.
Lost Password Action
This action is used to generate a time-sensitive password reset token for which a link will be sent via email to the address assigned to the submitted username. Consult \Charcoal\Admin\Action\Account\ResetPasswordAction for processing a reset token.
username
g-recaptcha-response
200
— Either a reset token is generated and emailed to user
or the action failed silently (nonexistent user account)400
— Client error; Invalid request data500
— Server error$adminConfig : \Charcoal\Admin\Config
Store a reference to the admin configuration.
init(\Psr\Http\Message\RequestInterface $request) : boolean
Template's init method is called automatically from `charcoal-app`'s Template Route.
For admin templates, initializations is:
$_GET
\Psr\Http\Message\RequestInterface | $request | The request to initialize. |
addFeedback(string $level, mixed $message) : \Charcoal\Admin\Ui\FeedbackContainerTrait
Add feedback.
string | $level | The feedback level. |
mixed | $message | The feedback message. |
Chainable
clearFeedback() : \Charcoal\Admin\Ui\FeedbackContainerTrait
Remove all feedback from collection.
Chainable
run(\Psr\Http\Message\RequestInterface $request, \Psr\Http\Message\ResponseInterface $response) : \Psr\Http\Message\ResponseInterface
Note that the lost-password action should never change status code and always return 200.
\Psr\Http\Message\RequestInterface | $request | A PSR-7 compatible Request instance. |
\Psr\Http\Message\ResponseInterface | $response | A PSR-7 compatible Response instance. |
setModelFactory(\Charcoal\Factory\FactoryInterface $factory) : \Charcoal\Admin\AdminScript
\Charcoal\Factory\FactoryInterface | $factory | The factory used to create models. |
Chainable
setSiteName(string $name) : \Charcoal\Admin\AdminAction
Set the name of the project.
string | $name | Name of the project. |
Chainable
loadUser(string $username) : \Charcoal\Admin\User|false
string | $username | Username or email. |
generateLostPasswordToken(\Charcoal\Admin\User $user) : \Charcoal\Admin\User\LostPasswordToken
\Charcoal\Admin\User | $user | The user to genereate a password-token to. |
sendLostPasswordEmail(\Charcoal\Admin\User $user, string $token) : void
\Charcoal\Admin\User | $user | The user to send the lost-password email to. |
string | $token | The lost-password token, as string. |