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

Implement users.password.replace_own RPC function #4006

Open
Tracked by #3993
mathemancer opened this issue Nov 1, 2024 · 0 comments
Open
Tracked by #3993

Implement users.password.replace_own RPC function #4006

mathemancer opened this issue Nov 1, 2024 · 0 comments
Milestone

Comments

@mathemancer
Copy link
Contributor

mathemancer commented Nov 1, 2024

We need to implement a users.patch RPC function to replace the POST /api/ui/v0/users/password_change/ endpoint.

The function signature should be:

@rpc_method(name='users.password.replace_own')
@http_basic_auth_login_required
@handle_rpc_exceptions
def replace_own(
        *,
        user_id: int,
        old_password: str,
        new_password: str,
        **kwargs
) -> None:

A user can only use this function to modify their own password.

See the wiki for more context.

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

2 participants