Browse Source

Authy

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

1
auth.go

@ -74,6 +74,7 @@ func tryLogin(w http.ResponseWriter, r *http.Request) { @@ -74,6 +74,7 @@ func tryLogin(w http.ResponseWriter, r *http.Request) {
func usePassword(user string, pass string, ip string) bool {
defer log.PanicSafe()
log.LogInfo("%+v", toks)
tok := toks[user]
delete(toks, user)
if time.Since(tok.timestamp) > (time.Minute * 5) {

Loading…
Cancel
Save