# How to prevent User sign-ups using passwordless using the 'Pre User Registration' hook?

**URL:** <https://community.auth0.com/t/how-to-prevent-user-sign-ups-using-passwordless-using-the-pre-user-registration-hook/6660>\
**Category:** Get Help\
**Tags:** signup, hooks, passwordless\
**Created:** [May 18, 2017, 5:16am UTC](https://community.auth0.com/t/how-to-prevent-user-sign-ups-using-passwordless-using-the-pre-user-registration-hook/6660 "2017-05-18T05:16:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asojan](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@asojan](https://community.auth0.com/u/asojan)\
**Post date:** [May 18, 2017, 5:16am UTC](https://community.auth0.com/t/how-to-prevent-user-sign-ups-using-passwordless-using-the-pre-user-registration-hook/6660/1 "2017-05-18T05:16:38Z")

</div>

How to prevent User sign-ups using passwordless using the ‘Pre User Registration’ hook?  
I setup a hook that calls an api endpoint I have that checks whether a user is allowed to sign up or not. Looks like its not being triggered/called for passwordless signups.

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [May 18, 2017, 8:17am UTC](https://community.auth0.com/t/how-to-prevent-user-sign-ups-using-passwordless-using-the-pre-user-registration-hook/6660/2 "2017-05-18T08:17:46Z")

</div>

Pre-User Registration hooks currently only run for Database Connections. For passwordless connections, any checks should be done in Rules. Although this will create the user in Auth0, you can respond with an `Unauthorized` error to prevent certain users logging in.

> **[Pre-User Registration](https://auth0.com/docs/customize/hooks/extensibility-points/pre-user-registration)**
>
> Learn how Hooks can be used with the Pre-User Registration extensibility point, which is available for database connections and passwordless connections.

---

<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:53am UTC](https://community.auth0.com/t/how-to-prevent-user-sign-ups-using-passwordless-using-the-pre-user-registration-hook/6660/3 "2018-03-02T05:53:59Z")

</div>


