# Limit registration with an authorization code

**URL:** <https://community.auth0.com/t/limit-registration-with-an-authorization-code/108465>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [June 4, 2023, 2:24am UTC](https://community.auth0.com/t/limit-registration-with-an-authorization-code/108465 "2023-06-04T02:24:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramosmarco](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@ramosmarco](https://community.auth0.com/u/ramosmarco)\
**Post date:** [June 4, 2023, 2:24am UTC](https://community.auth0.com/t/limit-registration-with-an-authorization-code/108465/1 "2023-06-04T02:24:34Z")

</div>

Hello everyone.

We need to allow user registration with a registration code only, as I see that can be done in Action / Pre User Registration; however, I have the following questions:

1. The documentation said that it is for Database or passwordless users, so for social users bypass that?
2. In Universal Login. Is there a way add a field on the registration form for the user to input the given code? and pass that field to the Pre User Registration action?

Thanks.

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [July 31, 2023, 6:31pm UTC](https://community.auth0.com/t/limit-registration-with-an-authorization-code/108465/3 "2023-07-31T18:31:44Z")

</div>

Hi @ramosmarco

Welcome back to the Auth0 Community!

In terms of your questions:

1. Unfortunately, the Pre User registration Action trigger is unavailable for social connection.
2. You can’t extend Universal Login with text fields, but there’s a lock option, that you can fully customize for your needs. In terms of additional signup fields, you can use [Text Field](https://auth0.com/docs/libraries/lock/lock-configuration#text-fields), which will be stored in the user meta-data. In the context of the Pre User Registration action, that will work only for Database or passwordless as social connection won’t trigger this action.

I hope it will help you  
Thanks and have a great day!

Dawid

---

<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:** [August 14, 2023, 6:31pm UTC](https://community.auth0.com/t/limit-registration-with-an-authorization-code/108465/4 "2023-08-14T18:31:55Z")

</div>

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