Fixed Change Password Bug

This commit is contained in:
Chris Mann 2023-07-25 14:19:15 +02:00
parent f46a843e0b
commit 671e7fca26

View file

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