Improve this doc View source

spPasswordResetForm
directive in module stormpath

Description

Use this directive on the page that users land on when they click on a password reset link. To send users a password reset link, see spPasswordResetRequestForm.

This directive will render a password reset form that does the following:

  • Verifies that the current URL has an sptoken in it. Shows an error if not.
  • Verifies the given sptoken with Stormpath, then:
    • If the token is valid, shows a form that allows the user to enter a new password.
    • If the token is invalid (it is expired or malformed), we prompt the user to enter their email address, so that we can try sending them a new link.

Usage

as attribute
<ANY sp-password-reset-form
     template-url="{string}">
   ...
</ANY>

Parameters

ParamTypeDetails
template-urlstring

An alternate template URL if you want to use your own template for the form.

Example

<!-- If you want to use the default template -->
<div class="container">
  <div sp-password-reset-form></div>
</div>

<!-- If you want to use your own template -->
<div class="container">
  <div sp-password-reset-form template-url="/path/to/my-custom-template.html"></div>
</div>