|
|
|
@ -20,8 +20,11 @@ func reqPass(w http.ResponseWriter, r *http.Request) {
@@ -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)) |
|
|
|
|