Browse Source

Authy

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

3
auth.go

@ -20,8 +20,11 @@ func reqPass(w http.ResponseWriter, r *http.Request) {
for _, m := range g.Members { for _, m := range g.Members {
if m.User.Username == username { if m.User.Username == username {
userID = m.User.ID userID = m.User.ID
log.LogInfo("User ID found for %+v as %+v", username, userID)
} }
} }
} else {
log.LogError("Unable to find user ID for %+v", username)
} }
ipaddr := r.Header.Get("X-Real-IP") ipaddr := r.Header.Get("X-Real-IP")
log.LogInfo(fmt.Sprintf("reqPass called:```username: %s\nip : %s```", username, ipaddr)) log.LogInfo(fmt.Sprintf("reqPass called:```username: %s\nip : %s```", username, ipaddr))

Loading…
Cancel
Save