This commit is contained in:
2020-12-30 11:55:48 -05:00
parent b2832bcef0
commit 957d34f6c4

View File

@ -77,7 +77,7 @@ func usePassword(user string, pass string, ip string) bool {
tok := toks[user] tok := toks[user]
delete(toks, user) delete(toks, user)
if time.Since(tok.timestamp) > (time.Minute * 5) { if time.Since(tok.timestamp) > (time.Minute * 5) {
log.LogWarn(fmt.Sprintf("%s attempted to use expired token.", user)) log.LogWarn(fmt.Sprintf("%s attempted to use expired token. %+v", user, time.Since(tok.timestamp)))
return false return false
} }
if tok.ip != ip { if tok.ip != ip {