diff --git a/IRaCIS.Core.API/Controllers/ExtraController.cs b/IRaCIS.Core.API/Controllers/ExtraController.cs
index 46c34d047..7e8c111be 100644
--- a/IRaCIS.Core.API/Controllers/ExtraController.cs
+++ b/IRaCIS.Core.API/Controllers/ExtraController.cs
@@ -246,7 +246,7 @@ namespace IRaCIS.Api.Controllers
returnModel.Data.BasicInfo.EMail = hiddenEmail;
- await _userService.SendMFAEmail(userId,UserMFAType.Login);
+ await _userService.SendMFAEmail(userId);
}
else
diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
index 5e0e70822..851952723 100644
--- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
+++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
@@ -13265,7 +13265,7 @@
-
+
发送MFA 验证邮件
diff --git a/IRaCIS.Core.Application/Service/Management/Interface/IUserService.cs b/IRaCIS.Core.Application/Service/Management/Interface/IUserService.cs
index 80a80bc94..a5b037a4f 100644
--- a/IRaCIS.Core.Application/Service/Management/Interface/IUserService.cs
+++ b/IRaCIS.Core.Application/Service/Management/Interface/IUserService.cs
@@ -12,7 +12,7 @@ namespace IRaCIS.Application.Services
Task> Login(string userName, string password);
Task VerifyMFACodeAsync(Guid userId, string Code);
- Task SendMFAEmail(Guid userId, UserMFAType mfaType);
+ Task SendMFAEmail(Guid userId, int mfaType=0);
Task GetUserBasicInfo(Guid userId,string pwd);
Task ModifyPassword(EditPasswordCommand editPwModel);
Task ResetPassword(Guid userId);
diff --git a/IRaCIS.Core.Application/Service/Management/UserService.cs b/IRaCIS.Core.Application/Service/Management/UserService.cs
index 57ff8e49d..5857072d6 100644
--- a/IRaCIS.Core.Application/Service/Management/UserService.cs
+++ b/IRaCIS.Core.Application/Service/Management/UserService.cs
@@ -656,13 +656,13 @@ namespace IRaCIS.Application.Services
///
///
[AllowAnonymous]
- public async Task SendMFAEmail(Guid userId, UserMFAType mfaType = UserMFAType.Login)
+ public async Task SendMFAEmail(Guid userId, int mfaType )
{
var userInfo = await _userRepository.Where(u => u.Id == userId).Select(t => new { t.FullName, t.EMail }).FirstOrDefaultAsync();
int verificationCode = new Random().Next(100000, 1000000);
- await _mailVerificationService.SenMFAVerifyEmail(userId, userInfo.FullName, userInfo.EMail, verificationCode, mfaType);
+ await _mailVerificationService.SenMFAVerifyEmail(userId, userInfo.FullName, userInfo.EMail, verificationCode, (UserMFAType)mfaType );
return ResponseOutput.Ok();
}