Fixed Change Password Bug

This commit is contained in:
Chris Mann 2023-07-25 15:48:32 +02:00
parent 7a5c9be1ad
commit 673615cd31

View file

@ -222,6 +222,7 @@ type NewAccountData struct {
WarningMessage string WarningMessage string
Success bool Success bool
CanAdmin bool CanAdmin bool
LoggedIn bool
} }
func handleNewAccount(w http.ResponseWriter, r *http.Request, l *ldap.Conn, invitedBy string) bool { func handleNewAccount(w http.ResponseWriter, r *http.Request, l *ldap.Conn, invitedBy string) bool {
@ -267,6 +268,7 @@ func handleNewAccount(w http.ResponseWriter, r *http.Request, l *ldap.Conn, invi
data.SuggestPW = fmt.Sprintf("%s", suggestPassword()) data.SuggestPW = fmt.Sprintf("%s", suggestPassword())
} }
data.CanAdmin = false data.CanAdmin = false
data.LoggedIn = false
templateInviteNewAccount.Execute(w, data) templateInviteNewAccount.Execute(w, data)
return data.Success return data.Success