mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: add password change page & feature
This commit is contained in:
parent
1157b77835
commit
be0c2ef262
4 changed files with 103 additions and 0 deletions
|
|
@ -64,3 +64,10 @@ async def api_update_user(request: Request, user_object: User, user_id: str):
|
|||
Update user by ID
|
||||
"""
|
||||
return await update_user(request, user_id, user_object)
|
||||
|
||||
@router.put("/password/user_id/{user_id}")
|
||||
async def api_update_user_password(request: Request, user_id: str , passwordChangeForm : PasswordChangeForm):
|
||||
"""
|
||||
Update user password by ID
|
||||
"""
|
||||
return await update_user_password(request, user_id, passwordChangeForm)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue