Fixed Change Password Bug

This commit is contained in:
Chris Mann 2023-07-25 14:17:03 +02:00
parent 4c34b8cb42
commit f46a843e0b

View file

@ -61,11 +61,11 @@ type LoginFormData struct {
func handleLogin(w http.ResponseWriter, r *http.Request) *LoginInfo { func handleLogin(w http.ResponseWriter, r *http.Request) *LoginInfo {
templateLogin := getTemplate("login.html") templateLogin := getTemplate("login.html")
loginStatus := checkLogin(w, r) // loginStatus := checkLogin(w, r)
if loginStatus != nil { // if loginStatus != nil {
handleHome(w, r) // handleHome(w, r)
return loginStatus.Info // return loginStatus.Info
} // }
if r.Method == "GET" { if r.Method == "GET" {
templateLogin.Execute(w, LoginFormData{CanAdmin: false}) templateLogin.Execute(w, LoginFormData{CanAdmin: false})