# Custom error messages Universal Login PHP SDK

**URL:** <https://community.auth0.com/t/custom-error-messages-universal-login-php-sdk/54619>\
**Category:** Get Help\
**Tags:** auth0-php, new-universal-login, error, auth0\
**Created:** [December 10, 2020, 12:37pm UTC](https://community.auth0.com/t/custom-error-messages-universal-login-php-sdk/54619 "2020-12-10T12:37:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dick.tornfeldt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dick.tornfeldt/32/24344_2.png) [@dick.tornfeldt](https://community.auth0.com/u/dick.tornfeldt)\
**Post date:** [December 10, 2020, 12:37pm UTC](https://community.auth0.com/t/custom-error-messages-universal-login-php-sdk/54619/1 "2020-12-10T12:37:44Z")

</div>

I am using the PHP SDK in order to create a login session. We use the new Universal login. What im trying to do is to customize the error messages a user can get when entering wrong password or duplicate email address. I have turned of the generic response in Auth0 settings.

I have tried to change the key between options and guzzle\_options like in this image. With no success, I still se the the general error message upon entering wrong credentials while trying to login (see second image “Fel e-postadress eller lösenord”). Should be “TEST TEST”

Is it better to create some kind of Rule in order to get control over some error messages in the Universal Login?

 ![Skärmavbild 2020-12-10 kl. 13.32.52](https://global.discourse-cdn.com/auth0/original/3X/1/0/104cac27e092a15f08a5ad030457fbd07bbb1b3b.png)

 ![Skärmavbild 2020-12-10 kl. 13.36.32](https://global.discourse-cdn.com/auth0/original/3X/7/d/7d6e342704f49cb24de6ef30bcd9158853026f4c.png)

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [December 11, 2020, 8:01pm UTC](https://community.auth0.com/t/custom-error-messages-universal-login-php-sdk/54619/3 "2020-12-11T20:01:39Z")

</div>

Hi @dick.tornfeldt,

It looks like you are referencing [this doc](https://auth0.com/docs/libraries/lock/customize-lock-error-messages).

The language dictionary options must be changed in the dashboard under the universal login settings. Go to [https://manage.auth0.com/#/login\_page](https://manage.auth0.com/#/login_page)

---

<div class="post-metadata">

**Author:** ![dick.tornfeldt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dick.tornfeldt/32/24344_2.png) [@dick.tornfeldt](https://community.auth0.com/u/dick.tornfeldt)\
**Post date:** [December 11, 2020, 8:27pm UTC](https://community.auth0.com/t/custom-error-messages-universal-login-php-sdk/54619/4 "2020-12-11T20:27:21Z")

</div>

Ahhh okey, so the new Universal Login doesn’t have same type of on the fly customization I understand this as? Anyways, thanks for the answer 🙂

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [December 11, 2020, 8:28pm UTC](https://community.auth0.com/t/custom-error-messages-universal-login-php-sdk/54619/5 "2020-12-11T20:28:20Z")

</div>

New UL can be customized via API calls. Here is the doc:

[https://auth0.com/docs/universal-login/new-experience/text-customization-new-universal-login](https://auth0.com/docs/universal-login/new-experience/text-customization-new-universal-login)

---

<div class="post-metadata">

**Author:** ![dick.tornfeldt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dick.tornfeldt/32/24344_2.png) [@dick.tornfeldt](https://community.auth0.com/u/dick.tornfeldt)\
**Post date:** [December 11, 2020, 8:33pm UTC](https://community.auth0.com/t/custom-error-messages-universal-login-php-sdk/54619/6 "2020-12-11T20:33:27Z")

</div>

Thank you for the support!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [December 11, 2020, 8:40pm UTC](https://community.auth0.com/t/custom-error-messages-universal-login-php-sdk/54619/7 "2020-12-11T20:40:06Z")

</div>

No problem! Let us know if you run into anything else.

---

<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:** [December 26, 2020, 8:40pm UTC](https://community.auth0.com/t/custom-error-messages-universal-login-php-sdk/54619/8 "2020-12-26T20:40:10Z")

</div>

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