|
|
@@ -78,7 +78,7 @@ func GenerateToken(info *JwtUser, expiredSeconds int) (tokenString string, err e
|
|
|
// Create the Claims
|
|
|
mySigningKey := []byte(KEY)
|
|
|
expireAt := time.Now().Add(time.Second * time.Duration(expiredSeconds)).Unix()
|
|
|
- beego.BeeLogger.Warn("token will be expired at %v ", time.Unix(expireAt, 0))
|
|
|
+ //beego.BeeLogger.Warn("token will be expired at %v ", time.Unix(expireAt, 0))
|
|
|
|
|
|
// pass parameter to this func or not
|
|
|
user := *info
|