# Set Custom Text Prompt api working for login but not for reset-password screen

**URL:** <https://community.auth0.com/t/set-custom-text-prompt-api-working-for-login-but-not-for-reset-password-screen/92078>\
**Category:** Get Help\
**Tags:** password-reset, custom-login, custom-text-api, auth0\
**Created:** [October 10, 2022, 1:53pm UTC](https://community.auth0.com/t/set-custom-text-prompt-api-working-for-login-but-not-for-reset-password-screen/92078 "2022-10-10T13:53:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamza](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hamza/32/40495_2.png) [@hamza](https://community.auth0.com/u/hamza)\
**Post date:** [October 10, 2022, 1:53pm UTC](https://community.auth0.com/t/set-custom-text-prompt-api-working-for-login-but-not-for-reset-password-screen/92078/1 "2022-10-10T13:53:14Z")

</div>

Hi,

\*\* Issue 1\*

I need to change the text that appears in [reset-password](https://auth0.com/docs/customize/universal-login-pages/customize-login-text-prompts) screen.

My Screen Looks like this:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/6/9/691c73afb30f9c88a44f88e04f369256018d7402.png)  
I want to replace “username” with “email” in both description and placeholder

I can easily change the text on “login” screen by [management api v2](https://auth0.com/docs/api/management/v2#!/Prompts/put_custom_text_by_language)  
The options I set are:

- Prompt: login
- language: en
- body: `{"login":{"usernamePlaceholder":"Username", "wrong-email-credentials": "Wrong username or password"}} `  
With the above settings I get 200 response and text gets changed successfully. All good here!

Similarly, for reset-password screen, options I set are:

- Prompt: reset-password
- language: en
- body: `{"reset-password":{"placeholderUsername":"Email"}}`

The response I get is:

```auto
{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "Invalid key \"placeholderUsername\" in screen \"reset-password\".",
  "errorCode": "invalid_body"
}

```

It appears so simple yet I cannot get it done!  
What mistake am I making here ?

\*\* Issue2\*

Secondly,  
As in the screenshot above, I am seeing “username” in placeholder and description. However, the default is “Email”. How did it get changed? Moreover, keys for both email and username are there in the [documentation for reset-password](https://auth0.com/docs/customize/universal-login-pages/customize-login-text-prompts)

 ![image](https://global.discourse-cdn.com/auth0/original/3X/8/3/835c506b7376174fca76882cc14a1240ae232204.png)  
How does it get decided whether username key will get precedence or the email key ?

Thanks in advance 😊 !

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [October 10, 2022, 8:46pm UTC](https://community.auth0.com/t/set-custom-text-prompt-api-working-for-login-but-not-for-reset-password-screen/92078/3 "2022-10-10T20:46:44Z")

</div>

Hi @hamza ,

Welcome to the Auth0 Community!

To update the reset-password screen, the text prompt should be `reset-password-request` instead of `reset-password`. Here are sample body scripts:

```auto
{
    "reset-password-request":{
        "descriptionEmail": "please enter your email and we will send you instructions to reset your password",
        "placeholderEmail": "Email"
    }

}

```

For the 2nd issue, if I understand correctly, you want to know how to request users to enter their email instead of the username on the forgot password page. I did some testing and noticed that if the database connection settings have `Require Username` enabled, the “Forgot Password” page will request the user’s username. Otherwise, it will require the user’s email.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/9/0/90e093acf08227f3086e341432471aa57855f8f9.jpeg)

Hopefully, the above details helps!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 24, 2022, 8:47pm UTC](https://community.auth0.com/t/set-custom-text-prompt-api-working-for-login-but-not-for-reset-password-screen/92078/4 "2022-10-24T20:47:38Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
