Browse Source

Authy

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

2
auth.go

@ -12,7 +12,6 @@ import ( @@ -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) { @@ -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) {

Loading…
Cancel
Save