update
parent
85ec2fe51a
commit
cdeb2be832
|
@ -162,7 +162,7 @@ func (srv Auth) Middleware(c *gin.Context) {
|
||||||
claims.ExpiresAt = time.Now().Unix() + srv.TokenExpire
|
claims.ExpiresAt = time.Now().Unix() + srv.TokenExpire
|
||||||
tok, err := srv.NewToken(*claims)
|
tok, err := srv.NewToken(*claims)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error().Str("mod", "auth").Err(err).Msg("Middleware")
|
log.Debug().Str("mod", "auth").Err(err).Msg("Middleware")
|
||||||
} else {
|
} else {
|
||||||
srv.SetToken(c, tok)
|
srv.SetToken(c, tok)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue