# Custom DB create functionality does not support required Username when using the "try" button

**URL:** <https://community.auth0.com/t/custom-db-create-functionality-does-not-support-required-username-when-using-the-try-button/7956>\
**Category:** Get Help\
**Tags:** signup\
**Created:** [August 24, 2017, 5:35am UTC](https://community.auth0.com/t/custom-db-create-functionality-does-not-support-required-username-when-using-the-try-button/7956 "2017-08-24T05:35:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmusgrave](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@jmusgrave](https://community.auth0.com/u/jmusgrave)\
**Post date:** [August 24, 2017, 5:35am UTC](https://community.auth0.com/t/custom-db-create-functionality-does-not-support-required-username-when-using-the-try-button/7956/1 "2017-08-24T05:35:35Z")

</div>

Sorry, I realize I wasn’t clear. Here are screen shots. Testing the “create” using the “Try” functionality for a Custom Database connection:

![Custom Database connection][1]

with requires\_username=true set to true,

![requires\_username=true][2]

fails with an error.

![error][3]

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [August 29, 2017, 4:27pm UTC](https://community.auth0.com/t/custom-db-create-functionality-does-not-support-required-username-when-using-the-try-button/7956/2 "2017-08-29T16:27:36Z")

</div>

To be honest, I’m likely missing something, but I’m unsure to what you refer with the _create “try”_ functionality. However, I **could not reproduce** this situation with the following steps:

1. Ensure a connection `C` with `requires_username=true` exists.
2. Navigate to the _Users_ section and click _CREATE USER_.
3. Select the connection `C` from the dropdown.
4. Fill all the available fields and create the user.

At step 3. when I selected connection `C` a _Username_ field was also displayed in the form so I could provide the username for the user.

In addition, I also tried the _Try connection_ which opens the hosted login page where you may be able to sign up if your hosted page allows to do so and could not reproduce the issue **using the default Lock-based hosted page** which again allows to input a username. If you customized the hosted page then the amount of information provided is insufficient because any tests will depend on your exact customization.

Finally, if you’re referring to something else completely different from what was mentioned before then update your question with additional information.

---

<div class="post-metadata">

**Author:** ![jmusgrave](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@jmusgrave](https://community.auth0.com/u/jmusgrave)\
**Post date:** [August 31, 2017, 11:02pm UTC](https://community.auth0.com/t/custom-db-create-functionality-does-not-support-required-username-when-using-the-try-button/7956/3 "2017-08-31T23:02:15Z")

</div>

Sorry, I realize I wasn’t clear. Here are screen shots. Testing the “create” using the “Try” functionality for a ![Custom Database connection][1] with _requires\_username=true_ set to true, fails with ![the error I described.][2]

---

<div class="post-metadata">

**Author:** ![jmusgrave](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@jmusgrave](https://community.auth0.com/u/jmusgrave)\
**Post date:** [August 31, 2017, 11:07pm UTC](https://community.auth0.com/t/custom-db-create-functionality-does-not-support-required-username-when-using-the-try-button/7956/4 "2017-08-31T23:07:06Z")

</div>

@jmangelo Apologies for the mangled question. I’ve updated it for clarity.

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [September 7, 2017, 6:36pm UTC](https://community.auth0.com/t/custom-db-create-functionality-does-not-support-required-username-when-using-the-try-button/7956/5 "2017-09-07T18:36:53Z")

</div>

Thanks for clarifying, yes, you’re correct. In that situation the fact that the database requires an username is not being taken into account. I’ll put a note in my backlog to report this situation.

---

<div class="post-metadata">

**Author:** ![jmusgrave](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@jmusgrave](https://community.auth0.com/u/jmusgrave)\
**Post date:** [September 7, 2017, 9:56pm UTC](https://community.auth0.com/t/custom-db-create-functionality-does-not-support-required-username-when-using-the-try-button/7956/6 "2017-09-07T21:56:50Z")

</div>

Thanks @jmangelo. It looks like a bug to me. I figure this is an edge case for your users, since most everyone will user email.

---

<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:** [March 2, 2018, 5:56am UTC](https://community.auth0.com/t/custom-db-create-functionality-does-not-support-required-username-when-using-the-try-button/7956/7 "2018-03-02T05:56:06Z")

</div>


