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

MKDoc::Core::Plugin

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-login.html'.

Can be overriden by setting the MKD__AUTH_RECOVER_LOGIN_URI_HINT environment variable or by subclassing.

$self->http_post();

Selects all the user account matching the supplied email address.

Constructs and sends an email with those account details.

$self->send_mail();

Constructs and sends the email.

TEMPLATE METHODS

self/email

The user supplied email.

self/matching_users

A list of user accounts which match the user supplied emails.