# AuthWeb how to set allowSignUp

**URL:** <https://community.auth0.com/t/authweb-how-to-set-allowsignup/8048>\
**Category:** Get Help\
**Tags:** webauth, allowsignup\
**Created:** [August 31, 2017, 9:39pm UTC](https://community.auth0.com/t/authweb-how-to-set-allowsignup/8048 "2017-08-31T21:39:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![java.cngroup](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@java.cngroup](https://community.auth0.com/u/java.cngroup)\
**Post date:** [August 31, 2017, 9:39pm UTC](https://community.auth0.com/t/authweb-how-to-set-allowsignup/8048/1 "2017-08-31T21:39:12Z")

</div>

I use webAuth and i try to disable signUp and Forget password but it doesn’t work  
in doc is it `allowSignUp: false` and `allowForgotPassword: false` in options but this doesn’t work.

I tried to do as is described in doc but this doesn’t work:

```
var options = {   
  allowSignUp: false
}; 
const auth0 = new Auth0(auth0Config, options );

```

---

<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 1, 2017, 3:51pm UTC](https://community.auth0.com/t/authweb-how-to-set-allowsignup/8048/2 "2017-09-01T15:51:58Z")

</div>

The `allowSignUp` and `allowForgotPassword` are [customization options available in Lock 10](https://auth0.com/docs/libraries/lock/v10/customization#database) and **not in the Auth0.js library** which it seems is where you’re trying to set them.

In addition you mention that you’re using `WebAuth` which would indicate the use of Auth0.js v8, however, the provide code `new Auth0(...)` is aligned with v7, as the expected way to instantiate `WebAuth` would be:

```
var webAuth = new auth0.WebAuth({ /* options */ });

```

Assuming that you’re using `WebAuth` and then you are calling the `authorize` method to navigate to the hosted login page (where by default Auth0 Lock is indeed used) **then you need to provide the options in question to the Lock configuration used in your hosted login page**.

The way to achieve the above is to customize your hosted login page; see the [reference docs](https://auth0.com/docs/hosted-pages/login#how-to-use-the-hosted-login-page) for further information.

---

<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/authweb-how-to-set-allowsignup/8048/3 "2018-03-02T05:56:15Z")

</div>


