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

Users unable to reset password #702

Open
Juergen-Airscout opened this issue Jun 24, 2018 · 7 comments
Open

Users unable to reset password #702

Juergen-Airscout opened this issue Jun 24, 2018 · 7 comments

Comments

@Juergen-Airscout
Copy link

Hi,

One of my users was attempting to reset their password. After clicking the link in their email they get a notification that the token has been validated. However all of the fields where the password would be entered are missing.

I've attempted doing it from a superuser account but it requires the previous password. Attempting to follow the reset link while logged in shows the fields but it says that the previos password is incorrect.

Any ideas on how I can reset a user password?

@steinkel
Copy link
Member

You could assign a temporary password via superadmin, then send the password to the user for a one time login and ask him to change the password right after login.

@Juergen-Airscout
Copy link
Author

How do you assign a temporary password? I might have missed that one. It seems the main options I have is to edit, view, change password and delete.

@Juergen-Airscout
Copy link
Author

When I attempt to change their password using change password it asks me for the original password.

@steinkel
Copy link
Member

Use

➜  usersapp git:(master) ✗ bin/cake users reset_password user password
Password changed for user: user
New password: password

@Juergen-Airscout
Copy link
Author

I assume that's the cake console? Because I'm hosting on AWS's Elastic Beanstalk I don't have access to the CLI. Is there any other way other than downloading the user database resetting it locally and then restoring it to the live db? Ideally, the user should be able to reset their password without admin intervention. Is there something I'm missing?

@Juergen-Airscout
Copy link
Author

So something interesting. When you attempt to reset your password it takes you from the link in your email to webroot/users/users/change-password. The only problem is none of the text fields are loaded. If you are a logged in user normally it would show said text fields. Any idea why not being logged in but resetting a password would cause those fields not to be show?

When logged in:
image

When resetting:
image

@ajibarra
Copy link
Member

@steinkel can we close this?

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

No branches or pull requests

3 participants