邮件跳转

Uat_Study
hang 2022-05-31 17:20:01 +08:00
parent 3de2321461
commit 7abcecf39c
1 changed files with 1 additions and 4 deletions

View File

@ -209,13 +209,10 @@ namespace IRaCIS.Api.Controllers
var errorUrl = domainStrList[0]+"//"+ domainStrList[2]+ "/error"; var errorUrl = domainStrList[0]+"//"+ domainStrList[2]+ "/error";
_logger.LogError(errorUrl);
if (!await _userRepository.AnyAsync(t => t.Id == Guid.Parse(userId) && t.EmailToken == token && t.IsFirstAdd)) if (!await _userRepository.AnyAsync(t => t.Id == Guid.Parse(userId) && t.EmailToken == token && t.IsFirstAdd))
{ {
decodeUrl = errorUrl+ "?ErrorMessage=您的初始化链接已过期"; decodeUrl = errorUrl+ $"?ErrorMessage={System.Web.HttpUtility.UrlEncode("")} ";
_logger.LogError(errorUrl);
} }
return Redirect(decodeUrl); return Redirect(decodeUrl);