# BUG lock10 CDN allowForgotPassword option

**URL:** <https://community.auth0.com/t/bug-lock10-cdn-allowforgotpassword-option/7823>\
**Category:** Get Help\
**Tags:** lock-10, bug, cdn\
**Created:** [August 11, 2017, 3:50pm UTC](https://community.auth0.com/t/bug-lock10-cdn-allowforgotpassword-option/7823 "2017-08-11T15:50:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smeer](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@smeer](https://community.auth0.com/u/smeer)\
**Post date:** [August 11, 2017, 3:50pm UTC](https://community.auth0.com/t/bug-lock10-cdn-allowforgotpassword-option/7823/1 "2017-08-11T15:50:16Z")

</div>

If you follow the tutorial on [Lock for Web/Overview](https://auth0.com/docs/libraries/lock/v10), and copy the following code that is under “More Examples; Lock (Modal)”:  
![alt text][1]  
All seems to work. However, if you supply the option “allowForgotPassword” (‘true’ or ‘false’), the js crashes… I tried several other options, but they all worked. So it looks like it only happens for that option:  
![alt text][2]  
The errors that will be logged are as follows:  
![alt text][3]  
In the unminified file, it appears to happen in the following function:  
![alt text][4]

Can this bug please be fixed? I’m working on a project that needs a modal without the forgot-password option.

---

<div class="post-metadata">

**Author:** ![smeer](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@smeer](https://community.auth0.com/u/smeer)\
**Post date:** [August 11, 2017, 4:15pm UTC](https://community.auth0.com/t/bug-lock10-cdn-allowforgotpassword-option/7823/2 "2017-08-11T16:15:15Z")

</div>

I looked deeper into this. There was another script (RequireJs) that apparently caused the error. It looks like there are variables that get overridden, and then lock.js fails on that.

HOWEVER, now that I (temporarily) removed all other scripts, it still does not work as intended. With the option “allowForgotPassword” set to ‘false’, there is still a link on the modal for “forgot your password”.

So this is actually even worse. The option does not do wat it promises, and there are variables that conflict with other scripts (why are you using common global variable names?).

Can these problems please be resolved?

---

<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:55am UTC](https://community.auth0.com/t/bug-lock10-cdn-allowforgotpassword-option/7823/3 "2018-03-02T05:55:53Z")

</div>


