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() {