From 933c97f58557f1106c753ca5f5008dfa8b680152 Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Mon, 24 Jul 2023 16:32:10 +0200 Subject: [PATCH] Fixed Change Password Bug --- invite.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/invite.go b/invite.go index b2d3557..e0092fe 100644 --- a/invite.go +++ b/invite.go @@ -45,6 +45,7 @@ type PasswordFoundData struct { Mail string OtherMailbox string CanAdmin bool + LoggedIn bool } type PasswordLostData struct { @@ -54,6 +55,7 @@ type PasswordLostData struct { Mail string OtherMailbox string CanAdmin bool + LoggedIn bool } func openNewUserLdap(config *ConfigFile) (*ldap.Conn, error) { @@ -76,7 +78,10 @@ func openNewUserLdap(config *ConfigFile) (*ldap.Conn, error) { func handleLostPassword(w http.ResponseWriter, r *http.Request) { templateLostPasswordPage := getTemplate("password_lost.html") - data := PasswordLostData{} + data := PasswordLostData{ + CanAdmin: false, + LoggedIn: false, + } if r.Method == "POST" { r.ParseForm()