ForgotPassword is a simple Snippet that handles the form when a User has forgotten their password and needs to retrieve it.
To use the password retrieval functionality, first create the Resource the
user will log in to should they click on the confirmation email, and put
the ResetPassword snippet in. Tell it what Resource the Login snippet is
in - or where you'd like it to provide a link back to:
Then create another resource with the ForgotPassword snippet, and tell it
what Resource the Reset snippet is in:
ForgotPassword comes with some default properties you can override. They are:
|tpl||The reset password message tpl. May be the type specified by the tplType property.||lgnForgotPassTpl|
|tplType||The type of tpl being provided by tpl||modChunk|
|emailTpl||The confirmation email message tpl.||lgnForgotPassEmail|
|emailSubject||The subject of the email message||Password Retrieval Email|
|emailTplType||The type of tpl being provided by emailTpl||modChunk|
|sentTpl||The message tpl to show when an email was successfully sent.||lgnForgotPassSentTpl|
|sentTplType||The type of tpl being provided by sentTpl||modChunk|
|loginResourceId||The resource to direct users to on successful confirmation.||1|
|resetResourceId||The resource that contains the Login.ResetPassword Snippet.||1|
The tplType property takes a different options. They can be:
- modChunk - The tpl provided must be the name of a chunk.
- file - Must be an absolute path to the tpl file.
- inline - The content of the tpl will be directly in the tpl property itself.
- embedded - The tpl is already in the page; just make the error properties be placeholders.