NAME
MKDoc::Auth::Plugin::Recover_Login - Let users recover their account login.
SUMMARY
If a user has forgotten their login detail, they can visit /.recover-login.html and enter their email address.
The plugin will select all the user accounts matching the supplied email address and send an email containing matching account information.
INHERITS FROM
API
$self->location();
Returns the PATH_INFO which will trigger this plugin.
$self->uri_hint();
Helps deciding what the URI of this plugin should be.
By default, returns 'recover-password.html'.
Can be overriden by setting the MKD__AUTH_RECOVER_PASSWORD_URI_HINT environment variable or by subclassing.
$self->http_post();
Selects the user account matching the supplied login.
Generates a new temporary password which will be permanent only once used.
Sends an email with the new password.
$self->send_mail();
Constructs and sends the email.
TEMPLATE METHODS
self/password
Returns the new temporary password.
self/login
Returns the user login.
self/object
Returns the user matching self/login