同步OpenAuth.Core最新代码

This commit is contained in:
yubaolee
2020-12-17 23:04:04 +08:00
parent 7ce8a219cf
commit 7217e7a924
61 changed files with 1112 additions and 315 deletions

View File

@@ -51,7 +51,7 @@ namespace OpenAuth.App.SSO
}
else
{
userInfo = _app.FindSingle(u =>u.Account == model.Account);
userInfo = _app.FirstOrDefault(u =>u.Account == model.Account);
}
if (userInfo == null)
@@ -63,6 +63,11 @@ namespace OpenAuth.App.SSO
throw new Exception("密码错误");
}
if (userInfo.Status != 0)
{
throw new Exception("账号状态异常,可能已停用");
}
var currentSession = new UserAuthSession
{
Account = model.Account,