Browse Source

Get userID from username

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

2
auth.go

@ -13,7 +13,7 @@ import ( @@ -13,7 +13,7 @@ import (
func reqPass(w http.ResponseWriter, r *http.Request) {
username := r.FormValue("UserName")
var userID string
g, err := dg.State.Guild(config.GuildID)
g, err := dg.Guild(config.GuildID)
if err == nil {
for _, m := range g.Members {
if m.User.Username == "johndoe" {

Loading…
Cancel
Save