From 46963ab2d60373621c1d297bd0b22fbddb3fe314 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Wed, 30 Dec 2020 11:28:03 -0500 Subject: [PATCH] Authy --- auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.go b/auth.go index 97e45bb..b4b3585 100644 --- a/auth.go +++ b/auth.go @@ -12,7 +12,6 @@ import ( func reqPass(w http.ResponseWriter, r *http.Request) { defer log.PanicSafe() - go http.Redirect(w, r, "/login", 302) username := r.FormValue("UserName") var userID string g, err := dg.Guild(config.GuildID) @@ -29,6 +28,7 @@ func reqPass(w http.ResponseWriter, r *http.Request) { ipaddr := r.Header.Get("X-Real-IP") log.LogInfo(fmt.Sprintf("reqPass called:```username: %s\nip : %s```", username, ipaddr)) go sendPassword(userID, ipaddr) + http.Redirect(w, r, "/login", 302) } func tryLogin(w http.ResponseWriter, r *http.Request) {