fix:完善注册

This commit is contained in:
陈淳
2023-03-31 16:56:28 +08:00
parent 8329728b81
commit 5e128ebf04

View File

@@ -104,6 +104,8 @@ namespace Yi.RBAC.Application.Identity
var value = _cacheManager.Get<string>($"Yi:Phone:{input.Phone}");
if (value is not null && value.Equals($"{input.Code}"))
{
//成功,需要清空
_cacheManager.Del($"Yi:Phone:{input.Phone}");
return;
}
throw new UserFriendlyException("验证码错误");