Fixed Change Password Bug
This commit is contained in:
parent
7a5c9be1ad
commit
673615cd31
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue