> For the complete documentation index, see [llms.txt](https://ztrust.gitbook.io/ztrust-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ztrust.gitbook.io/ztrust-documentation/user-manual-ztrust-v4.1/4.-admin-manual/4.13-set-up-multi-factor-authentication/4.13.4-otp-based-login.md).

# 4.13.4 OTP Based Login

*"A One-Time Password (OTP) is a unique, temporary code that a user receives via SMS/email to authenticate a login or transaction. Unlike traditional static passwords, which remain the same until changed, an OTP is valid for a single session or transaction."*

Follow the below steps to set up the OTP Based Registration

1. Click on **Authentication** in the sidebar.<br>

   <figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FBWVskDgCNZ3oTWdtEMu0%2FScreenshot%202025-09-08%20221549.png?alt=media&amp;token=da957d29-6be6-45b3-a732-0108c9691974" alt=""><figcaption><p>Fig. 4.12.4.a: Navingating to Authentication section</p></figcaption></figure>

2. Click on the **kebab menu (three dots)** on the right side of the **browser flow**. Select **Duplicate**. A popup will appear.<br>

   <figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FV8xIH0BM0D0q4BT1itoX%2Fimage.png?alt=media&amp;token=c6df4071-5b36-4bfc-bfb3-1a1383cd8667" alt=""><figcaption><p>Fig 4.12.4.b: Duplicating the existing browser flow</p></figcaption></figure>

3. Provide a **Name** for the flow, "OTP Based Login Flow" and click **Duplicate**. You will be redirected to the new flow configuration.<br>

   <figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FC3vbpyepTjDKBS0cX7KQ%2Fimage.png?alt=media&amp;token=737ab764-9af5-4c6c-b829-8c0428085b10" alt=""><figcaption><p>Fig 4.12.4.c: Giving a name to the new browser flow for OTP login</p></figcaption></figure>

4. Delete everything under **OTP Based Login Flow forms**.<br>

   <figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2Fd8IyiW0g0N0jB7Vskiye%2Fimage.png?alt=media&amp;token=49839140-6a24-49e7-a51e-ce1e42a172d6" alt=""><figcaption><p>Fig 4.12.4.d: Duplicated browser flow configuration page for OTP login</p></figcaption></figure>

5. Click on the **plus** icon on the right side of the **OTP Based Login Flow forms** and  select **Add Execution**. A popup will appear to select an execution.<br>

   <figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FGsw6VK8pR0UxSFeXdzeZ%2Fimage.png?alt=media&amp;token=b1ee2f45-dd42-44cd-b7bc-b6333db6129e" alt=""><figcaption><p>Fig 4.12.4.e: Proceeding to add a new execution to OTP login flow</p></figcaption></figure>

6. Search for **Email OTP**, select it and click **Add**.<br>

   <figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FDsSTW00SQ17ImqlBq9Cf%2Fimage.png?alt=media&amp;token=bbe5aee4-8533-4f71-913c-1093e1afa0a1" alt=""><figcaption><p>Fig 4.12.4.f: Select 'Email OTP' execution to add</p></figcaption></figure>

7. Click on the **settings menu (gear icon)** on the right side of the **Email OTP**. A popup will appear to configure the OTP.<br>

   <figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FgYr5p0hLt7tNczlVpBxn%2Fimage.png?alt=media&amp;token=a54ea7e7-f690-4edb-a85d-9ae7570d0df3" alt=""><figcaption><p>Fig 4.12.4.g: Proceeding to configure OTP login</p></figcaption></figure>

8. Provide an **Alias**, set the **OTP type**, **Number of digits in OTP**, **OTP Code period(in seconds)** and **Max Resend OTP Attempts**, then click **Save**.<br>

   <figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2F1ITQC1vnJGnhOvbi0RDS%2Fimage.png?alt=media&amp;token=7efb1e64-00f0-48f5-b3ab-6b2473b40cb8" alt=""><figcaption><p>Fig 4.12.4.h: Configuring OTP login</p></figcaption></figure>

9. Click on the **Actions**, on the top right of the page, and then **Bind flow**. A popup will appear.<br>

   <figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FNCAoQDecXWRHpJ0KRg9Q%2Fimage.png?alt=media&amp;token=9168ac9d-014f-4198-b8a9-442bc45669f0" alt=""><figcaption><p>Fig 4.12.4.i: Changing the 'Requirement' of OTP login</p></figcaption></figure>

10. Select the **Browser flow** and click **Save**.<br>

    <figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FrENLiL3ua1Vw1XUOVZbD%2Fimage.png?alt=media&amp;token=a8f65bf4-83b7-45f0-a246-8e3bb7880509" alt=""><figcaption><p>Fig 4.12.4.j: Selecting a flow to bind OTP login to</p></figcaption></figure>

OTP Based Login Flow will now be enabled.
