You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 10, 2024. It is now read-only.
Where currentPassword is needed when the requested doesn't have admin capabilities.
To implement this, one would need to:
put the PasswordManager in the mas_graphql::State. This is particularly annoying, as this currently lives in the mas_handler crate, which isn't accessible from the mas_graphql crate because else there would be a dependency loop
add a mutation in crates/graphql/src/user.rs
it should check if the requester is admin or is accessing their own user
if the requester is not admin:
it should check that the SiteConfig allows password change
it should check that the currentPassword was provided and validate it
GraphQL mutation to set/change password.
For a regular user require existing password to be provided (as well as new password).
For an admin no existing password is needed.
The text was updated successfully, but these errors were encountered: