public ChangeUserLoginAndPasswordCommand(int id, string login, string password, IHashPassword hashHandler, ICredentialsRestrictionValidation credentialsRestriction) { Id = id; Login = login; Password = password; HashHandler = hashHandler; this.credentialsRestriction = credentialsRestriction; }
public SignInCommand(string login, string password, string name, string surname, string email, IHashPassword hashHendler, ICredentialsRestrictionValidation credentialsRestriction) { Login = login; Password = password; Name = name; Surname = surname; Email = email; HashHendler = hashHendler; this.credentialsRestriction = credentialsRestriction; }
public AuthController(IAuthServiceWrapper services, IConfiguration tokenSettingsSection, IRequestMonitor monitor, ILogger <AuthController> logger) { this.services = services; var tokenSettings = tokenSettingsSection.Get <TokenConfig>(); this.tokenHelper = new TokenHelper(tokenSettings.Secret, tokenSettings.ExpirationTime); this.hashHandler = new BCryptHash(); this.requestMonitor = monitor; this.credentialsRestriction = new DefaultRestriction(); this.logger = logger; }