---
title: Resetting a password using a one-time passcode through email
description: Reset a password through a user's email account using a one-time passcode (OTP) .
component: solution-guides
page_id: solution-guides:customer_use_cases:htg_password_reset_p1_method_otp
canonical_url: https://docs.pingidentity.com/solution-guides/customer_use_cases/htg_password_reset_p1_method_otp.html
llms_txt: https://docs.pingidentity.com/solution-guides/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: April 29, 2024
section_ids:
  before-you-begin: Before you begin
  about-this-task: About this task
  steps: Steps
  result: Result:
  result-2: Result:
  result-3: Result:
  result-4: Result:
  result-5: Result:
  choose-from: Choose from:
  result-6: Result:
  result-7: Result:
  result-8: Result:
---

# Resetting a password using a one-time passcode through email

Reset a password through a user's email account using a one-time passcode (OTP) .

## Before you begin

* Make sure **Password Reset Type** is set to **Email One-Time Password** in your HTML Form Adapter instance configuration.

## About this task

For resetting a password with a one-time passcode through email, you must setup a SMTP mail server in PingFederate.

## Steps

1. Go to **Authentication****IdP Adapters** and, in the **Instance Name** list, select the adapter instance that you want to use.

2. **Optional:** Create a local identity profile (LIP).

   |   |                                                                                                                                                                                                                      |
   | - | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   |   | Perform this step if you want to allow the user to manage self-service registration using their LIP, such as managing a password reset or forgot password scenario. If not, you can skip this step and go to step 3. |

   1. On the **IdP Adapter** tab, click **Manage Local Identity Profiles**.

      ### Result:

      The **Local Identity Profiles** page opens.

   2. Reuse an existing Local Identity Profile or click **Create New Profile** to create a new profile.

      ### Result:

      The **Local Identity Profile** page opens.

   3. On the **Profile Info** tab, select the **Enable Registration** checkbox to show the **Email Verification** tab and configuration settings for this identity profile. Click **Next**.

   4. On the **Email Verification** tab, select the **Enable Email Ownership Verification** checkbox to show additional email verification settings. Click **Next**.

   5. On the **Summary** tab, click **Done**.

      ### Result:

      You're returned to the **Create Adapter Instance** window.

3. On the **IdP Adapter** tab, click **Manage Notification Publishers**.

   ### Result:

   The **Notification Publishers** page opens.

4. Click **Create New Instance**.

   ### Result:

   The **Create Notification Publisher Instance** page opens.

5. On the **Type** tab, from the **Type** list, select **SMTP Notification Publisher**. Click **Next**.

6. On the **Instance Configuration** tab, in the **Email Server** field, enter one of the following:

   ### Choose from:

   * a mailtrap.io

   * a gmail smtp server

   ![A screen capture of the Instance Configuration tab in the Create Notification Publisher Instance configuration window. There are settings to configure the server to communicate with your organization's SMTP mail server. The user can edit the From Address, Email Server, SMTP Port, Encryption Method, SMTPS Port, Verify Hostname, and UTF-8 Message Header Support settings. In this screen capture the SMTP Port field has 25 entered, the Encryption Method drop-down has None selected, the SMTPS Port has 465 entered, and the Verify Hostname checkbox is selected.](_images/joa1606333432434.png)

7. Click **Next**.

8. On the **Summary** tab, click **Save**.

9. Go to the **Sign On** page and click the **Trouble Signing On?** link.

   ![A screen capture of the Sign On page. The page displays the username and password fields as well as the Sign On button. If the user has issues signing on, the Change Password and Trouble Signing On links are provided.](_images/lkb1605644195117.jpg)

   ### Result:

   A password reset notification email containing an OTP is sent to your inbox.

10. In your email inbox, open the password reset email from PingFederate and copy the OTP.

    ### Result:

    You're directed to the **Account Recovery** page.

11. In the **Account Recovery** page, in the **Enter Security Code** field, paste the OTP. Click **Validate**.

![A screen capture of the Account Recovery page. There is the Enter Security Code field, which is requesting the one-time passcode sent to the user's email, and the Validate and Cancel buttons. The user can click Validate to progress or Cancel to stop the password reset process.](_images/sbx1605897984078.jpg)

\+

### Result:

\+ You're directed to the **Reset Your Password** page.

1. Enter a new password in the **New Password** and **Confirm New Password** fields. Click **Reset**.

![A screen capture of the Reset Your Password page. The page displays the New Password and Confirm New Password fields, requesting the user to enter and reenter their password change. The user can click Reset to confirm and save the password changes or Cancel to stop the password changes.](_images/oso1605568287541.jpg)
