Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

Allow admins to reset users passwords when using appropriate auth backends #175

Open
tomelliff opened this issue May 16, 2018 · 2 comments

Comments

@tomelliff
Copy link

I don't see a good way to reset a user's password in the admin panel or see anything in the code base at a glance to do so.

Obviously this wouldn't work for anything other than the database backend right now (I guess it could work with the Dynamo Auth backend if that gets implemented by anyone at some point) but would be useful here.

Right now I'm just deleting the user and recreating them but then I need to add to groups/set as admin all over again.

@stevearc
Copy link
Owner

There's currently no interface that will let you do that as the admin, though you can sign in as the user in question and do it. The access backend has a method edit_user_password that's called from an API endpoint. I could add some entry to that functionality from the admin interface too.

Question: Do you want to be able to set a user's password to a specific value? Or do you want to generate a token that a user can use to reset their own password?

Also, I'm a bit curious, what is the reason why you find yourself needing to reset users' passwords? Did they just forget it or is there something else going on? I'd like to learn more about the situation in case there are other features/fixes I could make that would address the use case better.

My computer finally fried itself this week and I'm waiting for a replacement. I'll try to get to this after I have a dev environment set up again.

@tomelliff
Copy link
Author

Apologies for the late reply, only just saw I still had this issue open.

It's for users who have forgotten their passwords. Creating a one time use token for them to login with and allow them to change their password would be equally fine.

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

No branches or pull requests

2 participants