master
Evan Chen 2021-12-18 20:03:58 +08:00
parent 85ec2fe51a
commit cdeb2be832
1 changed files with 1 additions and 1 deletions

View File

@ -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)
} }