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 {
templateLogin := getTemplate("login.html")
loginStatus := checkLogin(w, r)
if loginStatus != nil {
handleHome(w, r)
return loginStatus.Info
}
// loginStatus := checkLogin(w, r)
// if loginStatus != nil {
// handleHome(w, r)
// return loginStatus.Info
// }
if r.Method == "GET" {
templateLogin.Execute(w, LoginFormData{CanAdmin: false})