Skip to content

Commit

Permalink
Merge pull request #8 from forestvpn/bugfix/inactive_user
Browse files Browse the repository at this point in the history
fix panic: inactive user if it is with 30 days last seen time
  • Loading branch information
suquant authored Jun 26, 2023
2 parents 451f9d8 + ac0e088 commit e1bd51c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/auth/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,6 @@ func (db *UserDB) Sync() *UserDB {
if !user.Active {
continue
}
if time.Now().Unix()-user.LastSeen > 30*24*60*60 {
user.MarkAsInactive()
continue
}
if db.current == "" {
db.current = user.Pk
continue
Expand Down

0 comments on commit e1bd51c

Please sign in to comment.