feat: add change password
This commit is contained in:
@@ -20,6 +20,7 @@ from src.application.commands import (
|
||||
UpdateOrganizationCommand,
|
||||
UpdatePurchaseRequestStatusCommand,
|
||||
UploadOrganizationDocumentCommand,
|
||||
SetPasswordCommand,
|
||||
)
|
||||
from src.application.contracts import IHashService, IJwtService, ILogger
|
||||
from src.infrastructure.config import settings
|
||||
@@ -159,3 +160,10 @@ def get_set_purchase_request_quote_command(
|
||||
logger: ILogger = Depends(get_logger),
|
||||
) -> SetPurchaseRequestQuoteCommand:
|
||||
return SetPurchaseRequestQuoteCommand(uow, logger)
|
||||
|
||||
def get_set_password_command(
|
||||
uow: IUnitOfWork = Depends(get_unit_of_work),
|
||||
hash_service: IHashService = Depends(get_hash_service),
|
||||
logger: ILogger = Depends(get_logger),
|
||||
) -> SetPasswordCommand:
|
||||
return SetPasswordCommand(uow, hash_service, logger)
|
||||
|
||||
Reference in New Issue
Block a user