延长登陆时间

This commit is contained in:
yubaolee
2016-08-30 20:02:08 +08:00
parent 04d69e065e
commit ba897b1d88
3 changed files with 14 additions and 9 deletions

View File

@@ -52,7 +52,7 @@ namespace OpenAuth.App.SSO
{
UserName = model.UserName,
Token = Guid.NewGuid().ToString().GetHashCode().ToString("x"),
InvalidTime = DateTime.Now.AddMinutes(10),
InvalidTime = DateTime.Now.AddDays(1),
AppKey = model.AppKey,
CreateTime = DateTime.Now,
IpAddress = HttpContext.Current.Request.UserHostAddress