-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Allow admins to reset an user's password through the admin panel #146
Allow admins to reset an user's password through the admin panel #146
Conversation
c49d61d
to
1efba33
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok reintroducing deface
if we need it. Thanks @aitbw!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very useful! Thanks @aitbw!
I'd like to see the conflict fixed before approving this PR.
Hey, @aitbw would you mind rebasing this to fix the conflicts? |
1efba33
to
c4b22ea
Compare
Done @jacobherrington, sorry on the delay! Please refer to #165 for CI fixes 🙌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice to have, thanks!
c4b22ea
to
5afa3d9
Compare
app/overrides/spree/admin/users/edit/_add_reset_password_form.html.erb.deface
Outdated
Show resolved
Hide resolved
PR solidusio#156 changed the I18n value for the text shown when an admin resets their password
5afa3d9
to
e79ff3e
Compare
Done @spaghetticode ! ✔️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aitbw thank you! 🍰
This PR aims to serve as a starting point to finally close one of Solidus' oldest issues (solidusio/solidus#438) by adding a "Reset password" button/form admins can use to reset an user's password if necessary. It supeseeds PRs solidusio/solidus#1942 and solidusio/solidus#3151
Said button/form only renders if the user being modified is not the same as the one currently logged-in, as it makes no sense an admin would reset their own password through the admin panel.
This PR also re-introduces Deface (see #114), which might be the most sensible change included in this patch, but it's preferable than entirely overriding a view, as it might be modified in some way by another Solidus extension or the stores themselves.