Beispiel #1
0
async def update_password(recovery_token: str, update_password_request: UpdatePasswordRequest, request: Request):
    user_controller = UserController(request=request)
    user_controller.validate_recovery_password_token(recovery_token=recovery_token)
    user_controller.update_password(
        recovery_token=recovery_token,
        update_password_request=update_password_request
    )
    return None
Beispiel #2
0
async def login_for_access_token(recovery_token: str, request: Request):
    user_controller = UserController(request=request)
    user_controller.validate_recovery_password_token(recovery_token=recovery_token)
    return None