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