Skip to content

Commit

Permalink
Merge pull request #185 from subutai-io/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
emli authored Dec 25, 2017
2 parents b75e14a + 4a2e6ac commit 8ca9419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8ca9419

Please sign in to comment.