diff --git a/db/db.go b/db/db.go index 724f4a7..62368d0 100644 --- a/db/db.go +++ b/db/db.go @@ -339,7 +339,7 @@ func CheckToken(token string) (name string) { if b := tx.Bucket(tokens).Bucket([]byte(token)); b != nil { date := new(time.Time) date.UnmarshalText(b.Get([]byte("date"))) - if date.Add(time.Minute * 60).Before(time.Now()) { + if date.Add(time.Hour * 24).Before(time.Now()) { return nil } if value := b.Get([]byte("name")); value != nil {