Browse Source

Authy

hkremer/rebranding
Gregory Rudolph 4 years ago
parent
commit
957d34f6c4
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 2
      auth.go

2
auth.go

@ -77,7 +77,7 @@ func usePassword(user string, pass string, ip string) bool { @@ -77,7 +77,7 @@ func usePassword(user string, pass string, ip string) bool {
tok := toks[user]
delete(toks, user)
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
}
if tok.ip != ip {

Loading…
Cancel
Save