solidusio / solidus_auth_devise

🔑 Devise authentication for your Solidus store.
http://solidus.io
BSD 3-Clause "New" or "Revised" License
52 stars 124 forks source link

Allow admins to reset an user's password through the admin panel #146

Closed aitbw closed 4 years ago

aitbw commented 5 years ago

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.

jacobherrington commented 5 years ago

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

aitbw commented 5 years ago

Done @jacobherrington, sorry on the delay!

Please refer to #165 for CI fixes :raised_hands:

aitbw commented 4 years ago

Done @spaghetticode ! :heavy_check_mark: