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

feature request: Password policies when updating user password #5714

Open
jschill opened this issue Apr 15, 2024 · 3 comments
Open

feature request: Password policies when updating user password #5714

jschill opened this issue Apr 15, 2024 · 3 comments
Assignees
Labels
feature-request Something cool or not cool

Comments

@jschill
Copy link

jschill commented Apr 15, 2024

Problem
To update a user password, we have to use the management API (PATCH /api/users/{userId}/password). But doing so will not use the password policies, so you can set it to anything you like. This means we have to roll our own password validation and try to sync it with the Logto settings.

Solution(s) proposal
Make it possible to optionally enable the policies using the management API. This would be beneficial both for user managers and for users.

Another solution could be to make use of the "Forgot password" function, if it would be possible to trigger that email to be sent from the management API. Ie when a user is signed in and click "Change my password", that "forgot password"-email is triggered. This would not be very efficient for user managers, but it would likely be good for users and i personally like the fact that we (we as in the service provider using logto) won't have to host any change password-form and "see" the password.

@darcyYe
Copy link
Contributor

darcyYe commented Apr 17, 2024

This is a solid case, will discuss with the team.

@darcyYe darcyYe self-assigned this Apr 17, 2024
Copy link

github-actions bot commented May 2, 2024

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label May 2, 2024
@darcyYe darcyYe added feature-request Something cool or not cool and removed stale labels May 6, 2024
@jschill
Copy link
Author

jschill commented May 21, 2024

Another idea would be to extend the first screen parameter with a resetPassword value on top of the existing signIn and register

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Something cool or not cool
Development

No branches or pull requests

2 participants