Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public async Task <bool> ChangeMyPassword([FromBody] ChangeMyPasswordParameters parameters)
 {
     ValidateForEmptyParameters(parameters);
     return(await _authenticationService.ChangeMyPasswordAsync(HttpContext?.User?.Identity?.Name, parameters.OldPassword, parameters.NewPassword));
 }