Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import InlineUIElement from 'src/components/InlineUIElement.astro';
* Registration
* Forgot password
* Email verification
* Phone number verification
* Changing a password
* Two factor authentication
* Magic link passwordless authentication
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
import templates from '../../../json/themes/templates.json';
import APIField from '../../../../components/api/APIField.astro';
import InlineField from 'src/components/InlineField.astro';
import { marked } from 'marked';

const { fieldPrefix, singleRequest, singleResponse, response } = Astro.props;
const { singleRequest, singleResponse } = Astro.props;

templates.sort((a, b) => { return a.fieldName.toUpperCase().localeCompare(b.fieldName.toUpperCase())});
---
Expand Down
75 changes: 75 additions & 0 deletions astro/src/content/json/themes/templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -1206,6 +1206,81 @@
"description": "This page is used after the user has successfully updated their password, or reset it. This page should instruct the user that their password was updated and that they need to login again.",
"path": "/password/complete"
},
{
"displayName": "Phone number verification required",
"fieldName": "phoneVerificationRequired",
"description": "This page is rendered when a user is required to verify their phone number prior to being allowed to proceed with login. This occurs when `Unverified behavior` is set to `Gated` in identities/phone verification settings on the Tenant.",
"path": "/phone/verification-required",
"version": "1.99.9",
"variables": [
{
"name": "collectVerificationCode",
"type": "Boolean",
"description": "When `true`, a form input is displayed to allow a user to enter the verification code. This occurs when `Verification strategy` is set to `FormField` under identities/phone verification settings on the Tenant."
},
{
"name": "phoneNumber",
"type": "String",
"description": "The current value of the user's phone number. This may be useful to indicate to the user which phone number was sent a verification code."
},
{
"name": "showCaptcha",
"type": "Boolean",
"description": "A boolean that controls whether or not to include captcha scripts and show the captcha challenge (or message for invisible captcha)."
},
{
"name": "verificationId",
"type": "String",
"description": "The verification Id that was included on as a URL parameter. This is the high entropy value that will be paired with the low entropy one time code to complete phone number verification."
}
]
},
{
"displayName": "Phone number verification complete",
"fieldName": "phoneComplete",
"description": "This page is used after a user has verified their phone number by clicking the URL in the message. After FusionAuth has updated their user object to indicate that their phone number was verified, the browser is redirected to this page.",
"path": "/phone/complete",
"version": "1.99.9"
},

{
"displayName": "Phone number verification re-sent",
"fieldName": "phoneSent",
"description": "This page is used after a user has asked for the verification message to be resent. This can happen if the URL in the message expired and the user clicked it. In this case, the user can provide their phone number again and FusionAuth will resend the message. After the user submits their phone number and FusionAuth re-sends a verification message to them, the browser is redirected to this page.",
"path": "/phone/sent",
"version": "1.99.9",
"variables": [
{
"name": "phoneNumber",
"type": "String",
"description": "The phone number that requested to receive a new verification request message."
}
]
},
{
"displayName": "Phone number verification",
"fieldName": "phoneVerify",
"description": "This page is rendered when a user clicks the URL from the verification message and the `verificationId` has expired. FusionAuth expires `verificationId` after a period of time (which is configurable). If the user has a URL from the verification message that has expired, this page will be rendered and the error will be displayed to the user.",
"path": "/phone/verify",
"version": "1.99.9",
"variables": [
{
"name": "postMethod",
"type": "Boolean",
"description": "Defaults to `true` on this page."
},
{
"name": "showCaptcha",
"type": "Boolean",
"description": "A boolean that controls whether or not to include captcha scripts and show the captcha challenge (or message for invisible captcha)."
},
{
"name": "verificationId",
"type": "String",
"description": "The verification Id that was included on as a URL parameter but was invalid. This page does a redirect if the verificationId is valid."
}
]
},
{
"displayName": "Forgot password",
"fieldName": "passwordForgot",
Expand Down