# Add functionality for CMS end users to reset their own password

**URL:** <https://community.bloomreach.com/t/add-functionality-for-cms-end-users-to-reset-their-own-password/1039>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [May 8, 2019, 1:32pm UTC](https://community.bloomreach.com/t/add-functionality-for-cms-end-users-to-reset-their-own-password/1039 "2019-05-08T13:32:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![VRitesh](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/vritesh/32/337_2.png) [@VRitesh](https://community.bloomreach.com/u/VRitesh)\
**Post date:** [May 8, 2019, 1:32pm UTC](https://community.bloomreach.com/t/add-functionality-for-cms-end-users-to-reset-their-own-password/1039/1 "2019-05-08T13:32:26Z")

</div>

Hello World,

I am trying to add reset password functionality in my CMS for which I followed this documentation [https://bloomreach-forge.github.io/reset-password/](https://bloomreach-forge.github.io/reset-password/), to test this I set up Fake SMTP server to see if I get reset password email and it worked in my local PFA

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/bloomreach1/original/1X/d4dd58a21942741593c5e6f5140293c389422550.png)

But when I deployed it in my test server it says my password has expired and didn’t allow me to login (couldn’t check logs either) hence forcing me to revert back all my changes.  
This is the error which I am getting in my test server when I clicked on forgot password link PFA

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/bloomreach1/original/1X/c97d71a4c801c34e6ec19780056b8557efc55978.png)  
I checked with my Infra team and they confirmed that SMTP server exists there for emails, not sure what is going wrong has anyone have integrated this functionality with there CMS? if yes could you guide me what is going wrong?

Thank you in advance for your help.  
Regards  
V Ritesh

---

<div class="post-metadata">

**Author:** ![JoostOudeman](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/joostoudeman/32/350_2.png) [@JoostOudeman](https://community.bloomreach.com/u/JoostOudeman)\
**Post date:** [May 9, 2019, 2:38pm UTC](https://community.bloomreach.com/t/add-functionality-for-cms-end-users-to-reset-their-own-password/1039/2 "2019-05-09T14:38:57Z")

</div>

Hey Ritesh,  
It’s a problem that you can’t see the log files, those would probably be most helpful  
Do you have any other ways to get those logs?

Also, did you follow all steps in the documentation? Are there any (related) configuration files on the server that you don’t provide during deployment or use a different one than you use locally?

---

<div class="post-metadata">

**Author:** ![savan\_raiyani](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/savan_raiyani/32/340_2.png) [@savan\_raiyani](https://community.bloomreach.com/u/savan_raiyani)\
**Post date:** [May 12, 2019, 3:10pm UTC](https://community.bloomreach.com/t/add-functionality-for-cms-end-users-to-reset-their-own-password/1039/3 "2019-05-12T15:10:08Z")

</div>

Hi Joost,  
Thanks for your reply.  
Me and Ritesh are in same team.  
We could find log entries(while we hit reset password button) after reverting changes. Please find attachments

 ![Log-1](https://canada1.discourse-cdn.com/flex027/uploads/bloomreach1/original/1X/5a22cd8fc11ec40e06f8d181bbaa7c66abe1a7f8.png) ![Log-2](https://canada1.discourse-cdn.com/flex027/uploads/bloomreach1/original/1X/803fc34b263a3dd057d5b7b7494e86e4d9f7552a.png) ![Log-3](https://canada1.discourse-cdn.com/flex027/uploads/bloomreach1/original/1X/50938ffca95551392857dfe69d950cb72c639fc9.png) .  
We have followed all the steps that mentioned in the documentation.  
In test environment there is a different SMTP server configured than our local and it is confirmed by our infra team.

Thanks & Regards  
Savan Raiyani

---

<div class="post-metadata">

**Author:** ![machak](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/machak/32/1298_2.png) [@machak](https://community.bloomreach.com/u/machak)\
**Post date:** [May 12, 2019, 3:44pm UTC](https://community.bloomreach.com/t/add-functionality-for-cms-end-users-to-reset-their-own-password/1039/4 "2019-05-12T15:44:09Z")

</div>

first message clearly indicates it cannot find configuration document at:

/content/document/resetpassword/reset-password/reset-password path.

---

<div class="post-metadata">

**Author:** ![savan\_raiyani](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/savan_raiyani/32/340_2.png) [@savan\_raiyani](https://community.bloomreach.com/u/savan_raiyani)\
**Post date:** [May 13, 2019, 6:25am UTC](https://community.bloomreach.com/t/add-functionality-for-cms-end-users-to-reset-their-own-password/1039/5 "2019-05-13T06:25:29Z")

</div>

Hi Machak,

It is able to find a path in our local and working as expected(please see the first post by VRitesh) but not working when we deployed it in test environment.  
Thanks for your reply.

Thanks & Regards  
Savan Raiyani

---

<div class="post-metadata">

**Author:** ![VRitesh](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/vritesh/32/337_2.png) [@VRitesh](https://community.bloomreach.com/u/VRitesh)\
**Post date:** [May 13, 2019, 7:46am UTC](https://community.bloomreach.com/t/add-functionality-for-cms-end-users-to-reset-their-own-password/1039/6 "2019-05-13T07:46:01Z")

</div>

Hi Joost,  
Thank you for your reply.  
Please find logs from our Test environment posted by Savan, as you can see it’s not able to find the path for value list document in Test environment at “/content/document/resetpassword/reset-password/reset-password” but the document does exist there and is able to find it in my local, not sure why it couldn’t at Test environment!  
We followed all the steps mentioned in the documentation, all the server level configuration are managed by Bloomreach and they confirmed that everything is right not sure what is going wrong.

---

<div class="post-metadata">

**Author:** ![VRitesh](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/vritesh/32/337_2.png) [@VRitesh](https://community.bloomreach.com/u/VRitesh)\
**Post date:** [May 13, 2019, 7:47am UTC](https://community.bloomreach.com/t/add-functionality-for-cms-end-users-to-reset-their-own-password/1039/7 "2019-05-13T07:47:54Z")

</div>

Hi Machak,  
Thank you for your reply.  
Yes but the document do exist at the very mentioned path and is able to detect when I run this in my local, not sure why it couldn’t in my server.

---

<div class="post-metadata">

**Author:** ![VRitesh](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/vritesh/32/337_2.png) [@VRitesh](https://community.bloomreach.com/u/VRitesh)\
**Post date:** [May 27, 2019, 1:17pm UTC](https://community.bloomreach.com/t/add-functionality-for-cms-end-users-to-reset-their-own-password/1039/8 "2019-05-27T13:17:00Z")

</div>

Hi Joost,

Greetings!  
We are now able to achieve this functionality, the resetpassword user was not part of admin user group because of which it had access restriction (this was added automatically in local but for some reason not in my server).

But now we have bigger problems  
The password reset plugin in referring to org.onehippo.forge.resetpassword.login.CustomLoginPlugin class at [http://localhost:8080/cms/console/?1&path=/hippo:configuration/hippo:frontend/login/login/loginPage](http://localhost:8080/cms/console/?1&path=/hippo:configuration/hippo:frontend/login/login/loginPage) but the problem is it has vanished **time-zone dropdown** and **captcha** functionality as they were coming from org .hippoecm.frontend.plugins.login.DefaultLoginPlugin ([http://localhost:8080/cms/console/?1&path=/hippo:configuration/hippo:frontend/login/login/loginPage](http://localhost:8080/cms/console/?1&path=/hippo:configuration/hippo:frontend/login/login/loginPage))!!

even thou the CustomLoginPlugin extends the DefaultLoginPlugin class but the methods for **timezone** and **captcha** has never been called.

It looks like either one of them would work either “ **password reset** ” or “ **captcha and timezone** ”!

Is there any way I could fix this?

Regards  
Ritesh

---

<div class="post-metadata">

**Author:** ![machak](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/machak/32/1298_2.png) [@machak](https://community.bloomreach.com/u/machak)\
**Post date:** [May 28, 2019, 12:24pm UTC](https://community.bloomreach.com/t/add-functionality-for-cms-end-users-to-reset-their-own-password/1039/9 "2019-05-28T12:24:08Z")

</div>

I’ve fixed this to the development branch,  
for time being you can fork the classes/html till we cut a release

see:

> <https://github.com/bloomreach-forge/reset-password/commit/8f7924ceab3382e7a087a7a5f0c19f6413cc31e3>

---

<div class="post-metadata">

**Author:** ![jeroen.hoffman](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jeroen.hoffman/32/43_2.png) [@jeroen.hoffman](https://community.bloomreach.com/u/jeroen.hoffman)\
**Post date:** [June 19, 2019, 9:27am UTC](https://community.bloomreach.com/t/add-functionality-for-cms-end-users-to-reset-their-own-password/1039/10 "2019-06-19T09:27:45Z")

</div>

FYI version 3.1 of the Reset Password plugin has been released now with a fix for the missing time zone and captcha fields.

See [https://bloomreach-forge.github.io/reset-password/release-notes.html](https://bloomreach-forge.github.io/reset-password/release-notes.html)

Cheer, Jeroen
