From 619525b7a71d4506079f76da48b671f1dd83ea40 Mon Sep 17 00:00:00 2001 From: jxx <283591387@qq.com> Date: Thu, 25 May 2023 15:25:21 +0800 Subject: [PATCH] 1 --- Vue.Net/VOL.System/Services/System/Partial/Sys_UserService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Vue.Net/VOL.System/Services/System/Partial/Sys_UserService.cs b/Vue.Net/VOL.System/Services/System/Partial/Sys_UserService.cs index 8d26f8f9..6de300e9 100644 --- a/Vue.Net/VOL.System/Services/System/Partial/Sys_UserService.cs +++ b/Vue.Net/VOL.System/Services/System/Partial/Sys_UserService.cs @@ -56,8 +56,8 @@ namespace VOL.System.Services Sys_User user = await repository.FindAsIQueryable(x => x.UserName == loginInfo.UserName) .FirstOrDefaultAsync(); - //if (user == null || loginInfo.Password.Trim().EncryptDES(AppSetting.Secret.User) != (user.UserPwd ?? "")) - // return webResponse.Error(ResponseType.LoginError); + if (user == null || loginInfo.Password.Trim().EncryptDES(AppSetting.Secret.User) != (user.UserPwd ?? "")) + return webResponse.Error(ResponseType.LoginError); string token = JwtHelper.IssueJwt(new UserInfo() {