Authy
This commit is contained in:
1
auth.go
1
auth.go
@ -12,6 +12,7 @@ import (
|
||||
|
||||
func reqPass(w http.ResponseWriter, r *http.Request) {
|
||||
defer log.PanicSafe()
|
||||
log.LogInfo("reqPass called.")
|
||||
username := r.FormValue("UserName")
|
||||
var userID string
|
||||
g, err := dg.Guild(config.GuildID)
|
||||
|
||||
@ -20,7 +20,6 @@ var (
|
||||
|
||||
func topWrapper(r *http.Request) string {
|
||||
defer log.PanicSafe()
|
||||
log.LogInfo(fmt.Sprintf("%s called topWrapper", getSessionIdentifier(r)))
|
||||
headerTemplate, err := ioutil.ReadFile("./static/header.tpl")
|
||||
if err != nil {
|
||||
log.LogError(fmt.Sprintf("Unable to open header template: ```%+v```", err))
|
||||
@ -38,7 +37,6 @@ func topWrapper(r *http.Request) string {
|
||||
|
||||
func bodyWrapper(r *http.Request, template string) string {
|
||||
defer log.PanicSafe()
|
||||
log.LogInfo(fmt.Sprintf("%s called bodyWrapper", getSessionIdentifier(r)))
|
||||
bodyTemplate, err := ioutil.ReadFile(fmt.Sprintf("./static/%+v.tpl", template))
|
||||
if err != nil {
|
||||
log.LogError(fmt.Sprintf("Attempt to load %s.tpl failed. ```%+v```", template, err))
|
||||
|
||||
Reference in New Issue
Block a user