Пример #1
0
 public async Task ChangePasswordAsync(ChangePasswordDto changePassword)
 {
     if (string.IsNullOrEmpty(changePassword.AccessToken))
     {
         throw new CcsSsoException("ACCESS_TOKEN_REQUIRED");
     }
     if (string.IsNullOrEmpty(changePassword.NewPassword))
     {
         throw new CcsSsoException("NEW_PASSWORD_REQUIRED");
     }
     if (string.IsNullOrEmpty(changePassword.OldPassword))
     {
         throw new CcsSsoException("OLD_PASSWORD_REQUIRED");
     }
     await _identityProviderService.ChangePasswordAsync(changePassword);
 }