alchemy functions updated
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user