Class ChangePasswordCommandHandler
Namespace: Identity.Application.Requests.Handlers.User
Assembly: Identity.Application.dll
Handler that checks previous and new password matching before updating the password.
Inheritance
object ← ChangePasswordCommandHandler
Implements
IRequestHandler<ChangePasswordCommand, Result<PasswordChangedDto\>\>
Inherited Members
object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Constructors
ChangePasswordCommandHandler\(IUserRepository, IUnitOfWork, IPasswordHasher<User\>, IAuthorizationService, IHttpContextAccessor\)
Parameters
repository IUserRepository
unitOfWork IUnitOfWork
passwordHasher IPasswordHasher < User \>
authorizationService IAuthorizationService
httpContextAccessor IHttpContextAccessor
Methods
Handle\(ChangePasswordCommand, CancellationToken\)
Handles a request
Parameters
request ChangePasswordCommand
The request
cancellationToken CancellationToken
Cancellation token
Returns
Task <Result< PasswordChangedDto \>\>
Response from the request