-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Password reset link does not work when logged in #5008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@lafriks what should be the behaviour... It redirects back to the dashboard page because the user is already logged in |
I think it should allow changing password independently if user is logged in or not (could be that user is logged in by oauth) and does not remember his password anymore. Of course it needs to check if change password request is for the same user as logged in |
I discovered this when working on #5029. I'm going to take a crack at it. I'll try to keep it separate from my other two PRs if I can. |
I've taken a peek, but there's magic going on somewhere that I haven't been able to track down and I could use some help. It's happening before it ever reaches I've noticed that there are some helper functions in Any ideas @daviian ? |
Found it, but this change will require some adult supervision (@lafriks). For Reference: The Stack
Which is loading from SuggestionI think that the simplest way to get the most value with the fewest code changes will be to make the result of clicking the link (AND clicking to update the password) perform these actions:
There are some edge cases, but I don't believe that they're our responsibility:
Some future improvements I think we could make:
ImplementationWe create a second
Next we update Bonus: Add the retype password, remember me, and and call |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
This issue has been automatically closed because of inactivity. You can re-open it if needed. |
With current try.gitea.io, I proceed as follows:
The result of the above is that there's a redirect to https://try.gitea.io/. No password reset form is presented.
If I log out from gitea before visiting the password reset URL, I am able to reset the password.
I verified the above behavior with two browsers: Firefox ESR 52.9.0 and Chromium 68.0.3440.75.
The text was updated successfully, but these errors were encountered: