public bool Login(LoginParameters parameters) { if (parameters == null) { throw new ClientException("It is not allowed to call this authentication service method with no parameters provided."); } _logger.Trace(() => "Login: "******"Login", parameters.UserName)); }
public bool Login(LoginParameters parameters) { if (parameters == null) throw new ClientException("It is not allowed to call this authentication service method with no parameters provided."); _logger.Trace(() => "Login: "******"Login", parameters.UserName); }
public async Task <bool> Login([FromBody] LoginParameters parameters) { ValidateForEmptyParameters(parameters); return(await _authenticationService.LogInAsync(parameters.UserName, parameters.Password, parameters.PersistCookie)); }