custom session expiration

This commit is contained in:
Joachim Hill-Grannec 2017-08-17 12:40:09 -07:00
parent c30198e412
commit 10b47c69e4

View file

@ -152,7 +152,7 @@ func GetLoginToken(c *gin.Context) {
return
}
exp := time.Now().Add(time.Hour * 72).Unix()
exp := time.Now().Add(Config.Server.SessionExpires).Unix()
token := token.New(token.SessToken, user.Login)
tokenstr, err := token.SignExpires(user.Hash, exp)
if err != nil {