alchemy functions updated

This commit is contained in:
2024-11-10 12:14:10 +03:00
parent 1f75e49a07
commit e01a2c8afb
24 changed files with 543 additions and 389 deletions

View File

@@ -76,22 +76,21 @@ def authentication_refresh_user_info(request: Request):
@login_route.post(path="/change_password", summary="Change password with access token")
def authentication_change_password(request: Request, data: ChangePassword):
token_dict = parse_token_object_to_dict(request=request)
active_function = getattr(
AuthenticationChangePasswordEventMethod, "authentication_change_password"
)
return active_function(data=data, request=request, token_dict=None)
return active_function(data=data, token_dict=token_dict)
@login_route.post(
path="/create_password", summary="Create password with password token"
)
def authentication_create_password(request: Request, data: CreatePassword):
def authentication_create_password(data: CreatePassword):
active_function = getattr(
AuthenticationCreatePasswordEventMethod, "authentication_create_password"
)
return active_function(data=data, request=request, token_dict=None)
return active_function(data=data)
@login_route.post(path="/disconnect", summary="Disconnect user with access token")