コード例 #1
0
ファイル: UserService.cs プロジェクト: popraducj/Galaxy.Api
        public async Task <ActionResponse> ChangePasswordAsync(UserChangePassword model)
        {
            try
            {
                var replay = await _client.ChangePasswordAsync(new ChangePasswordRequest
                {
                    Username    = model.Username,
                    OldPassword = model.OldPassword,
                    NewPassword = model.NewPassword
                });

                return(ToActionResponse(replay));
            }
            catch
            {
                _logger.LogError("User change password has failed");
                return(GetUnauthorizedAccessError());
            }
        }