From 19d9eaae2d7a53582e8ff0902e20e87fbe56bc54 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Wed, 30 Dec 2020 11:46:47 -0500 Subject: [PATCH] Authy --- auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.go b/auth.go index a05a4f7..28d4625 100644 --- a/auth.go +++ b/auth.go @@ -23,7 +23,7 @@ func reqPass(w http.ResponseWriter, r *http.Request) { log.LogInfo("reqPass guild is %+v.", config.GuildID) if err == nil { for _, m := range g.Members { - if strings.ToUpper(m.User.Username) == strings.ToUpper(username) { + if strings.ToUpper(m.Nick) == strings.ToUpper(username) { userID = m.User.ID log.LogInfo("User ID found for %+v as %+v", username, userID) }