修改mfa 验证
continuous-integration/drone/push Build is passing Details

Uat_IRC_Net8
hang 2025-01-03 09:38:24 +08:00
parent ecfc603dda
commit 6713a9c8e2
1 changed files with 3 additions and 3 deletions

View File

@ -735,12 +735,12 @@ namespace IRaCIS.Core.Application.Service
/// <summary>
/// 发送MFA 验证邮件
/// </summary>
/// <param name="identityUserId"></param>
/// <param name="mfaType"></param>
/// <returns></returns>
[AllowAnonymous]
public async Task<IResponseOutput> SendMFAEmail(Guid identityUserId, UserMFAType mfaType)
public async Task<IResponseOutput> 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);