public bool ChangeMyPassword(ChangeMyPasswordParameters parameters) { if (parameters == null) { throw new ClientException("It is not allowed to call this authentication service method with no parameters provided."); } _logger.Trace(() => "ChangeMyPassword: "******"ChangeMyPassword", WebSecurity.CurrentUserName)); }
public bool ChangeMyPassword(ChangeMyPasswordParameters parameters) { if (parameters == null) throw new ClientException("It is not allowed to call this authentication service method with no parameters provided."); _logger.Trace(() => "ChangeMyPassword: "******"ChangeMyPassword", WebSecurity.CurrentUserName); }
public async Task <bool> ChangeMyPassword([FromBody] ChangeMyPasswordParameters parameters) { ValidateForEmptyParameters(parameters); return(await _authenticationService.ChangeMyPasswordAsync(HttpContext?.User?.Identity?.Name, parameters.OldPassword, parameters.NewPassword)); }