添加注释
This commit is contained in:
parent
e080ec72dc
commit
0107308fec
|
|
@ -176,6 +176,7 @@ namespace HuanMeng.MiaoYu.Code.Users.UserAccount.PhoneAccount
|
||||||
UserId = user.Id,
|
UserId = user.Id,
|
||||||
NickName = user.NickName,
|
NickName = user.NickName,
|
||||||
};
|
};
|
||||||
|
memoryVerificationCodeManager.RemoveExpiredRefreshCodes(phoneLoginParams.PhoneNumber);
|
||||||
return loginAccountInfo;
|
return loginAccountInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ namespace HuanMeng.MiaoYu.Code.Users.UserAccount.VerificationCodeManager
|
||||||
//判断是否存在
|
//判断是否存在
|
||||||
if (MemoryVerificationCode.ContainsKey(key))
|
if (MemoryVerificationCode.ContainsKey(key))
|
||||||
{
|
{
|
||||||
if (DateTime.Now.Subtract(MemoryVerificationCode[key].CreateAt).TotalSeconds < 60)
|
if (DateTime.Now.Subtract(MemoryVerificationCode[key].CreateAt).TotalSeconds < 59)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user