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

Reset user password by admin? #649

Closed
tjwudi opened this Issue Nov 12, 2015 · 9 comments

Comments

Projects
None yet
4 participants
@tjwudi
Contributor

tjwudi commented Nov 12, 2015

So after moving user management outside of /admin to /users, how does admin reset users' password? Are we missing it or not?

@arikfr

This comment has been minimized.

Member

arikfr commented Nov 12, 2015

When you open a user's profile (as admin), there is a "Password" tab where
you can change his password. Although you need to know the current one.
Maybe I need to remove this restriction for admins.

Arik Fraimovich

On Thu, Nov 12, 2015 at 2:36 AM, John Wu notifications@github.com wrote:

So after moving user management outside of /admin to /users, how does
admin reset users' password? Are we missing it or not?


Reply to this email directly or view it on GitHub
#649.

@tjwudi

This comment has been minimized.

Contributor

tjwudi commented Nov 12, 2015

Yeah ... If I know the current one then I won't ask admin to reset for it, isn't it? =D And also it would probably be good to have delete user option. Is there any reason we don't have users management in /admin anymore?

@arikfr

This comment has been minimized.

Member

arikfr commented Nov 14, 2015

I prefer to replace the old /admin views with the new ones, as the old ones didn't do proper data validation and could cause issues.

I'll add both the option to reset password & to delete users to the new views (or you can do that if you have the time :)).

@hirefrank

This comment has been minimized.

hirefrank commented Nov 20, 2015

👍 In the meantime, what is the safest way to remove a user -- so I can "reset" them and create a new account?

@arikfr

This comment has been minimized.

Member

arikfr commented Nov 22, 2015

@hirefrank did this user create any queries?

@arikfr

This comment has been minimized.

Member

arikfr commented Nov 22, 2015

@hirefrank btw, if you only need to reset his password, you can do it from the command line:

$ cd /opt/redash/current
$ sudo -u redash bin/run ./manage.py users password {user's email} {new password}
@hirefrank

This comment has been minimized.

hirefrank commented Nov 24, 2015

Thanks for the tip.

On Sun, Nov 22, 2015 at 1:00 AM, Arik Fraimovich notifications@github.com
wrote:

@hirefrank https://github.com/hirefrank btw, if you only need to reset
his password, you can do it from the command line:

$ cd /opt/redash/current
$ sudo -u redash bin/run ./manage.py users password {user's email} {new password}


Reply to this email directly or view it on GitHub
#649 (comment).

Frank Harris
hirefrank.com / @hirefrank http://twitter.com/hirefrank

@vitorbaptista

This comment has been minimized.

Contributor

vitorbaptista commented Oct 17, 2016

@arikfr Sorry for resurrecting an old thread, but any plans on allowing admins to change the users' passwords without knowing the current one? I'd like to avoid setting up an SMTP server, but need a way to reset the users' passwords in case they forget.

@arikfr

This comment has been minimized.

Member

arikfr commented Oct 20, 2016

@vitorbaptista you don't need to setup an SMTP server, but spend ~10 minutes signing up with a free MailGun account. As we move forward there will be additional features that will work better with working email setup (like notifications to admins in case of issues).

For now your option is to use the CLI. You are welcome to submit a pull request to change it to generate the forgot password link instead of asking the admin to supply a new password for the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment