SEED-platform / seed

Standard Energy Efficiency Data (SEED) Platform™ is a web-based application that helps organizations easily manage data on the energy performance of large groups of buildings.
Other
110 stars 55 forks source link

Change password option isn't working #4447

Open RDmitchell opened 10 months ago

RDmitchell commented 10 months ago

instance: dev2 SHA: b0703cba6

I tried to reset the password for one of my SEED accounts. I didn't get an error, but I also didn't get an email to reset it.

anchapin commented 10 months ago

This should be working on dev2 now. Can you try changing a password again?

RDmitchell commented 10 months ago

Instance: dev2 SHA: b3c6784d2

When I click the Forgot Password on the login page, and then enter my email address, in this case rdmitchell+408@lbl.gov, I get the following email to reset my password You're receiving this email because you requested a password reset for your user account at SEED / Dev 2.

Please go to the following page and choose a new password:

https://afc71fade5a1841b3b848ed958601864-1042822150.us-east-1.elb.amazonaws.com/accounts/password/reset/confirm/NTYx/bzi9ko-5efa03181a69bd81d176d77baaf5e017/

Your username, in case you’ve forgotten: rdmitchell+408@lbl.gov

Thanks for using our site!

The SEED / Dev 2 team

However, when I click the link, I get this message. image

kflemin commented 8 months ago

@anchapin did this issue get resolved?

github-actions[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity within 60 days. It will be closed if no further activity occurs. Thank you for your contributions.

axelstudios commented 6 months ago

This is still an issue on all of our deployments - attempting to reset your password does not send an email (to junk or otherwise)

perryr16 commented 2 months ago

I received emails from both dev1 and dev2 in my primary inbox from rdmitchell@lbl.gov, however the provided link url is incorrect. It currently directs to an amazon aws domain instead of the seed instance.

ex: the url provided in the email was https://a641c143e406f466a95fdd38695ab895-312368394.us-east-1.elb.amazonaws.com/accounts/password/reset/confirm/NTcx/cc5gxn-4cc7d5fceca9c98b51d0ac30be735675/

however the feature works if you replace "https://a641c143e406f466a95fdd38695ab895-312368394.us-east-1.elb.amazonaws.com" with "https://dev2.seed-platform.org/"

Image

kflemin commented 2 months ago

@perryr16, could we use the site.domain to create the URL instead so we can make sure it goes to the right place?

you should be able to get it from the "Site" model object, site.domain.

This could also be a misconfiguration of dev1/dev2 if that site object is not set correctly...

perryr16 commented 2 months ago

@kflemin, yeah when testing locally the site.domain is incorrect. It can be changed pretty easily on an instance by instance basis. The steps are listed here but it would need to be done by someone with access to those instances. Another option would be to create a SITE_DOMAIN env variable on each instance and run a migration that uses that env var to set the site domain.