Skip to content
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

Merged
merged 3 commits into from
Sep 1, 2019

Conversation

aitbw
Copy link
Contributor

@aitbw aitbw commented Apr 9, 2019

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.

@aitbw aitbw force-pushed the aitbw/admins-password-reset branch from c49d61d to 1efba33 Compare April 9, 2019 12:52
Copy link
Member

@kennyadsl kennyadsl left a 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!

jacobherrington
jacobherrington previously approved these changes Apr 9, 2019
Copy link
Contributor

@jacobherrington jacobherrington left a 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!

@jacobherrington jacobherrington dismissed their stale review June 20, 2019 22:36

I'd like to see the conflict fixed before approving this PR.

@jacobherrington
Copy link
Contributor

Hey, @aitbw would you mind rebasing this to fix the conflicts?

@aitbw aitbw force-pushed the aitbw/admins-password-reset branch from 1efba33 to c4b22ea Compare August 2, 2019 04:42
@aitbw
Copy link
Contributor Author

aitbw commented Aug 2, 2019

Done @jacobherrington, sorry on the delay!

Please refer to #165 for CI fixes 🙌

Copy link

@ericsaupe ericsaupe left a 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!

@aitbw aitbw force-pushed the aitbw/admins-password-reset branch from c4b22ea to 5afa3d9 Compare August 27, 2019 17:46
@aitbw aitbw force-pushed the aitbw/admins-password-reset branch from 5afa3d9 to e79ff3e Compare August 31, 2019 17:57
@aitbw
Copy link
Contributor Author

aitbw commented Aug 31, 2019

Done @spaghetticode ! ✔️

Copy link
Member

@spaghetticode spaghetticode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aitbw thank you! 🍰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants