This commit is contained in:
2024-11-26 10:12:19 +08:00
parent 70ff1350bb
commit 9bcd11cf28
3 changed files with 14 additions and 2 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ namespace WebAPI.Controllers
db.SubmitChanges();
// FormsAuthentication.SetAuthCookie(person.PersonId, true, FormsAuthentication.FormsCookiePath);
FormsAuthenticationTicket Tick = new FormsAuthenticationTicket(1,
sysUser.Account,
person.PersonName,
DateTime.Now,
DateTime.Now.AddYears(10), //十年有效期
false,