Improve this doc View source

spEmailVerification
directive in module stormpath

Description

Use this directive on the page that users land on when they click an email verification link. These links are sent after a user registers, see spRegistrationForm.

This directive will render a view 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, tell the user that the confirmation is complete and prompt the user to login.
    • 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-email-verification
     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-email-verification></div>
</div>

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