Refactoring

This commit is contained in:
Chris Mann 2023-07-26 09:02:42 +02:00
parent 36a1816ba1
commit fd4efc08bf

View file

@ -77,7 +77,9 @@ func handlePasswd(w http.ResponseWriter, r *http.Request) {
login := checkLogin(w, r)
if login == nil {
data.Common.LoggedIn = false
templatePasswd.Execute(w, data)
http.Redirect(w, r, "/", http.StatusFound)
// templatePasswd.Execute(w, data)
return
}
data.Login.Status = login