Authy
This commit is contained in:
3
auth.go
3
auth.go
@ -20,8 +20,11 @@ func reqPass(w http.ResponseWriter, r *http.Request) {
|
||||
for _, m := range g.Members {
|
||||
if m.User.Username == username {
|
||||
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")
|
||||
log.LogInfo(fmt.Sprintf("reqPass called:```username: %s\nip : %s```", username, ipaddr))
|
||||
|
||||
Reference in New Issue
Block a user