From 6713a9c8e2f5eda4e84b4bd444dcf80d79747d9c Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Fri, 3 Jan 2025 09:38:24 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9mfa=20=E9=AA=8C=E8=AF=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
IRaCIS.Core.Application/Service/Management/UserService.cs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/IRaCIS.Core.Application/Service/Management/UserService.cs b/IRaCIS.Core.Application/Service/Management/UserService.cs
index a84f6f154..ae64be999 100644
--- a/IRaCIS.Core.Application/Service/Management/UserService.cs
+++ b/IRaCIS.Core.Application/Service/Management/UserService.cs
@@ -735,12 +735,12 @@ namespace IRaCIS.Core.Application.Service
///
/// 发送MFA 验证邮件
///
- ///
///
///
- [AllowAnonymous]
- public async Task SendMFAEmail(Guid identityUserId, UserMFAType mfaType)
+ public async Task SendMFAEmail(UserMFAType mfaType)
{
+ var identityUserId = _userInfo.IdentityUserId;
+
var userInfo = await _identityUserRepository.Where(u => u.Id == identityUserId).Select(t => new { t.FullName, t.EMail }).FirstOrDefaultAsync();
int verificationCode = new Random().Next(100000, 1000000);