Browse Source

Login API 時效加長至30天

Dev
Janie 2 years ago
parent
commit
ed31c23644
  1. 6
      EuroTran/EasyBL.WEBAPP/ShowEasy/SystemService.cs

6
EuroTran/EasyBL.WEBAPP/ShowEasy/SystemService.cs

@ -163,15 +163,15 @@ namespace EasyBL.WEBAPP.SYS
// LoginIp = i_crm.ClientIP, // LoginIp = i_crm.ClientIP,
LoginTime = DateTime.Now LoginTime = DateTime.Now
}; };
var iExpireTime = 43200;
var sExpireTime = Common.GetSystemSetting(db, oUser.OrgID, @"ExpireTime");
var iExpireTime = 240;
var sExpireTime = Common.GetSystemSetting(db, oUser.OrgID, @"SEexpireTime");
if (!string.IsNullOrEmpty(sExpireTime)) if (!string.IsNullOrEmpty(sExpireTime))
{ {
iExpireTime = int.Parse(sExpireTime); iExpireTime = int.Parse(sExpireTime);
} }
else else
{ {
iExpireTime = int.Parse(Common.GetAppSettings(@"ExpireTime"));
iExpireTime = int.Parse(Common.GetAppSettings(@"SEexpireTime"));
} }
ticket.ExpireTime = DateTime.Now.AddMinutes(iExpireTime); //30天過期 ticket.ExpireTime = DateTime.Now.AddMinutes(iExpireTime); //30天過期
ticket.IsVerify = @"Y"; ticket.IsVerify = @"Y";

Loading…
Cancel
Save