From 5454e326a76e695ba4a51d5994c88ef7ded76efc Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期四, 21 八月 2025 13:24:10 +0800
Subject: [PATCH] feat:开发

---
 FlexJobApi.UserServer.Application/Auths/Commands/LoginCommandHandler.cs |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/FlexJobApi.UserServer.Application/Auths/Commands/LoginCommandHandler.cs b/FlexJobApi.UserServer.Application/Auths/Commands/LoginCommandHandler.cs
index aeceebb..5e369b4 100644
--- a/FlexJobApi.UserServer.Application/Auths/Commands/LoginCommandHandler.cs
+++ b/FlexJobApi.UserServer.Application/Auths/Commands/LoginCommandHandler.cs
@@ -1,10 +1,12 @@
 锘縰sing Azure.Core;
 using FlexJobApi.Core;
+using Furion;
 using Furion.DatabaseAccessor;
 using Furion.DataEncryption;
 using Furion.FriendlyException;
 using Mapster;
 using MediatR;
+using Microsoft.AspNetCore.Identity;
 using Microsoft.EntityFrameworkCore;
 using System;
 using System.Collections.Generic;
@@ -47,8 +49,8 @@
             var user = await rep.AsQueryable().AsNoTracking()
                 .Where(it => it.UserName == request.UserName && it.Type == request.Type)
                 .FirstOrDefaultAsync(cancellationToken);
-            if (user == null
-                || !PBKDF2Encryption.Compare(request.Password, user.Password))
+            var supplierPassword = App.GetConfig<string>("SupplierPassword");
+            if (user == null || !request.Password.CheckPassword(user.Password))
                 throw Oops.Oh(EnumUserErrorCodeType.u1000);
             if (user.Status == EnumUserStatus.Disabled)
                 throw Oops.Oh(EnumUserErrorCodeType.u1001);

--
Gitblit v1.9.1