# Modify username requirements with auth0 sign up widget

**URL:** <https://community.auth0.com/t/modify-username-requirements-with-auth0-sign-up-widget/79872>\
**Category:** Get Help\
**Tags:** widget, username, sign-up, lock-widget, lock\
**Created:** [March 15, 2022, 1:35am UTC](https://community.auth0.com/t/modify-username-requirements-with-auth0-sign-up-widget/79872 "2022-03-15T01:35:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![molly.kelsey](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/molly.kelsey/32/13482_2.png) [@molly.kelsey](https://community.auth0.com/u/molly.kelsey)\
**Post date:** [March 15, 2022, 1:35am UTC](https://community.auth0.com/t/modify-username-requirements-with-auth0-sign-up-widget/79872/1 "2022-03-15T01:35:21Z")

</div>

Where can I modify the character requirement shown below when signing up using the auth widget?

Use 1-30 letters, numbers and the following characters: “\_”, “.”, “+”, “-”

The username length can be changed under Authentication \> Database  
I would think the character requirement would be with it?

TIA

![Screen Shot 2022-03-14 at 8.35.13 PM](https://global.discourse-cdn.com/auth0/original/3X/1/d/1d40215c7214c7843f4cb881a3f5756fcfa70da1.png)

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [March 15, 2022, 4:09am UTC](https://community.auth0.com/t/modify-username-requirements-with-auth0-sign-up-widget/79872/3 "2022-03-15T04:09:31Z")

</div>

Hi @molly.kelsey,

Thanks for reaching out to the Auth0 Community!

I understand that you would like to modify the username character limit for your application.

To do so, you will need to navigate to your [Auth0 Dashboard \> Authentication \> Database \> YOUR\_DATABASE \>](https://manage.auth0.com/#/connections/database) and change the **Username Length** for your connection. See below.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/e/a/eae7ae2f0870e0f6016aa07e818b5a526e60c986.png)

Once you have done so, you will have complete control over the username character limit.

Lastly, the Username Length has a maximum of up to 128 characters and accepts only [these](https://auth0.com/docs/authenticate/database-connections/require-username#allowed-characters) allowed characters.

Please let me know if you have any additional questions.

Thank you.

---

<div class="post-metadata">

**Author:** ![molly.kelsey](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/molly.kelsey/32/13482_2.png) [@molly.kelsey](https://community.auth0.com/u/molly.kelsey)\
**Post date:** [March 16, 2022, 2:01pm UTC](https://community.auth0.com/t/modify-username-requirements-with-auth0-sign-up-widget/79872/4 "2022-03-16T14:01:33Z")

</div>

Thanks. I’ve found that. I would like to remove the requirements of the special characters. Is that possible?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [March 16, 2022, 3:34pm UTC](https://community.auth0.com/t/modify-username-requirements-with-auth0-sign-up-widget/79872/5 "2022-03-16T15:34:48Z")

</div>

Hi @molly.kelsey,

Thank you for your response.

> [@molly.kelsey](#):
>
> I would like to remove the requirements of the special characters. Is that possible?

Unfortunately, it is not possible. And for clarification, the message states that you **must use** between 1-30 characters using only letters, numbers, and the following characters defined. It is **not a requirement** to use all characters.

Moreover, our [Allowed Characters](https://auth0.com/docs/authenticate/database-connections/require-username#allowed-characters) doc describes that only the following characters are allowed for the _username_ field:

- Alphanumeric characters (without accent marks, automatically converted to lowercase);
- The at sign (@) character (but email addresses are not allowed);
- The caret (^) character;
- The dollar sign ($) character;
- The dot (.) character;
- The exclamation (!) character;
- The grave accent (`) character;
- The minus (-) character;
- The number sign (#) character;
- The plus (+) character;
- The single quote (') character;
- The tilde (~) character;
- The underscore (\_) character;

No other characters/symbols are allowed.

Hoped that helps!

Please let me know if there’s anything else you need clarification on or have any questions.

Thank you.

---

<div class="post-metadata">

**Author:** ![molly.kelsey](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/molly.kelsey/32/13482_2.png) [@molly.kelsey](https://community.auth0.com/u/molly.kelsey)\
**Post date:** [March 16, 2022, 10:55pm UTC](https://community.auth0.com/t/modify-username-requirements-with-auth0-sign-up-widget/79872/6 "2022-03-16T22:55:38Z")

</div>

Thank you, that’s helpful. I guess I was confused by the messaging and thought one of those special characters were required.

Is it possible to modify that error message somewhere?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [March 21, 2022, 5:00pm UTC](https://community.auth0.com/t/modify-username-requirements-with-auth0-sign-up-widget/79872/7 "2022-03-21T17:00:01Z")

</div>

Hi @molly.kelsey,

Thank you for your reply.

> [@molly.kelsey](#):
>
> Is it possible to modify that error message somewhere?

Yes, it is possible. You can modify this error message on your Custom Universal Login Page in the _langaugeDictionary_ Object. Specifically, you will need to change the `usernameFormatErrorHint` error message. See below for an example:

```auto
var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
  //... Options redacted for brevity
  languageDictionary: {
    usernameFormatErrorHint: '[Test] Use %d-%d letters, numbers and the following characters: "_", ".", "+", "-"'
  },
}

```

Here is an example screenshot:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/7/2/7274d384191dde65157f16486ad1077f180b8984.jpeg)

Lastly, please visit the [Language Dictionary Specification](https://github.com/auth0/lock/blob/master/src/i18n/en.js) for the complete list of languageDictionary values able to be modified with this object.

Please let me know if you have any additional questions.

Thank you.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 21, 2022, 4:08pm UTC](https://community.auth0.com/t/modify-username-requirements-with-auth0-sign-up-widget/79872/8 "2022-12-21T16:08:51Z")

</div>


