# forgotPasswordLink for Enterprise Connections

**URL:** <https://community.auth0.com/t/forgotpasswordlink-for-enterprise-connections/58011>\
**Category:** Get Help\
**Tags:** login, auth0\
**Created:** [February 17, 2021, 12:34pm UTC](https://community.auth0.com/t/forgotpasswordlink-for-enterprise-connections/58011 "2021-02-17T12:34:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lwallimann](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lwallimann/32/14673_2.png) [@lwallimann](https://community.auth0.com/u/lwallimann)\
**Post date:** [February 17, 2021, 12:34pm UTC](https://community.auth0.com/t/forgotpasswordlink-for-enterprise-connections/58011/1 "2021-02-17T12:34:22Z")

</div>

Hi

is it possible to display the forgotPasswordLink if we are using an Enterprise Connection?

I have customized the login page (Lock) on the Universal Login (Classic)

allowForgotPassword: true,  
forgotPasswordLink: ‘https://some\_url’,

But I see the link only if I use the database connection.

The final goal is to display a password forgotten link on the login site who redirect me to a different site who is doing the password change on the active directory.

Thanks a lot

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [February 17, 2021, 2:59pm UTC](https://community.auth0.com/t/forgotpasswordlink-for-enterprise-connections/58011/2 "2021-02-17T14:59:54Z")

</div>

Hi @lwallimann

I don’t think you can do this with lock.js, and I would not recommend this. With an Enterprise Connection, you are not the owner of the connection and are not responsible nor allowed to change password etc.

If you want to do it, you can just add a link yourself outside the lock.js box, the link would redirect to the appropriate place.

John

---

<div class="post-metadata">

**Author:** ![lwallimann](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lwallimann/32/14673_2.png) [@lwallimann](https://community.auth0.com/u/lwallimann)\
**Post date:** [February 17, 2021, 4:37pm UTC](https://community.auth0.com/t/forgotpasswordlink-for-enterprise-connections/58011/3 "2021-02-17T16:37:17Z")

</div>

Hi @john.gateley

Thanks a lot for your clarification.  
With outside the lock.js box do you refer to a own build login site right?  
As of now I tried it with the “Customize Login Page” on the Universal Login. If I put there a link it shows up the link but not on the right place (back in the container and not clickable).  
I think it would work if I use the “Custom Login Form” but I like the Lock view.

Thanks a lot  
Lars

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [February 18, 2021, 2:10pm UTC](https://community.auth0.com/t/forgotpasswordlink-for-enterprise-connections/58011/4 "2021-02-18T14:10:45Z")

</div>

You need a custom login form with lock.js, but not the template that pops up lock and hides everything else behind it. It requires a little bit of HTML work…

John

---

<div class="post-metadata">

**Author:** ![lwallimann](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lwallimann/32/14673_2.png) [@lwallimann](https://community.auth0.com/u/lwallimann)\
**Post date:** [February 22, 2021, 3:38pm UTC](https://community.auth0.com/t/forgotpasswordlink-for-enterprise-connections/58011/5 "2021-02-22T15:38:58Z")

</div>

Hi John

We could do it with this little bit of code after the lock.show();

```
lock.on("signin ready", () => {
			const elem = document.createElement('div');
			elem.innerHTML = '<div style="font-size:0.8em;text-align:center;padding-bottom:20px"><a href="https://some.url.com" target="_blank">Don\'t remember your password?</a></div>';
      const target = document.querySelector('.auth0-lock-form');
      target.after(elem);
    });

```

Special thank to Andy who help me out with this code snipped.

Cheers Lars

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 23, 2021, 3:59pm UTC](https://community.auth0.com/t/forgotpasswordlink-for-enterprise-connections/58011/6 "2021-02-23T15:59:31Z")

</div>

Glad you have figured this out and thanks for sharing with the rest of community!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 25, 2021, 10:36am UTC](https://community.auth0.com/t/forgotpasswordlink-for-enterprise-connections/58011/7 "2021-02-25T10:36:51Z")

</div>


