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

Change password without the old password #41

Closed
mateosantosdev opened this issue Jul 31, 2017 · 7 comments
Closed

Change password without the old password #41

mateosantosdev opened this issue Jul 31, 2017 · 7 comments

Comments

@mateosantosdev
Copy link

Hi,

Is there any way to update the user password without the old password?

@ocram
Copy link
Contributor

ocram commented Jul 31, 2017

Thanks!

Do you want to do this as a user (i.e. let the user do this on their own) or as an administrator?

For the first case, the decision to require the old password as well has been intentional. But perhaps there might be some use cases where this is not required.

@mateosantosdev
Copy link
Author

Hi ocram,

Yes, I want to do this as a user.

I've seen the function updatePassword inside Auth.php :)

@ocram
Copy link
Contributor

ocram commented Aug 5, 2017

Will be available shortly, using a small wrapper around updatePassword. Thanks!

@fdiengdoh
Copy link

I wasn't sure if this would be secure? but isn't password update a sensitive access? What if someone use rememberme by mistake on a public computer and somebody change the password without needing to input the old password?

@fdiengdoh
Copy link

But as an admin it sound logical.

@ocram
Copy link
Contributor

ocram commented Aug 12, 2017

@fdiengdoh You're absolutely right. That's why the current method for changing the password still requires the old password to be entered. With the new method added, the old one will still be the recommended one and the default.

@ocram
Copy link
Contributor

ocram commented Aug 25, 2017

Implemented in:

This is available in a new major version, v6.0.0, which comes with a few breaking changes. For a guide on how to upgrade, please see the migration notes in Migration.md.

@ocram ocram closed this as completed Aug 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants