Additional resources
Each toolkit form has 2 parts:
The <script>
snippet should be added to the <head>
of any page that has a Userfront toolkit form.
The script snippet only needs to be added once per page.
Add the form tag (e.g. <login-form>
) wherever you want your form to show. The form tag must have the
tenant-id
attribute provided.
You can add it more than once per page if you want to have multiple forms on the same page.
You can add as many forms as you would like across your application.
To have a working application ensure you have the following forms at their associated paths:
Form name | Redirect path name |
---|---|
Login form | After-logout path |
Password reset form | Password reset path |
The signup form will:
Install by copying the code below and pasting it in your application.
See a demo on CodePen
The login form will:
lastActiveAt
attributeTo handle login links correctly put a login form at your After-logout path.
Install by copying the code below and pasting it in your application.
The password reset form will:
To handle password resets correctly put a password reset form at your Password reset path.
Install by copying the code below and pasting it in your application.
The logout button will:
Install by copying the code below and pasting it in your application.