Fixed Change Password Bug
This commit is contained in:
parent
33c621b83b
commit
933c97f585
1 changed files with 6 additions and 1 deletions
|
@ -45,6 +45,7 @@ type PasswordFoundData struct {
|
||||||
Mail string
|
Mail string
|
||||||
OtherMailbox string
|
OtherMailbox string
|
||||||
CanAdmin bool
|
CanAdmin bool
|
||||||
|
LoggedIn bool
|
||||||
}
|
}
|
||||||
|
|
||||||
type PasswordLostData struct {
|
type PasswordLostData struct {
|
||||||
|
@ -54,6 +55,7 @@ type PasswordLostData struct {
|
||||||
Mail string
|
Mail string
|
||||||
OtherMailbox string
|
OtherMailbox string
|
||||||
CanAdmin bool
|
CanAdmin bool
|
||||||
|
LoggedIn bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func openNewUserLdap(config *ConfigFile) (*ldap.Conn, error) {
|
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) {
|
func handleLostPassword(w http.ResponseWriter, r *http.Request) {
|
||||||
templateLostPasswordPage := getTemplate("password_lost.html")
|
templateLostPasswordPage := getTemplate("password_lost.html")
|
||||||
data := PasswordLostData{}
|
data := PasswordLostData{
|
||||||
|
CanAdmin: false,
|
||||||
|
LoggedIn: false,
|
||||||
|
}
|
||||||
|
|
||||||
if r.Method == "POST" {
|
if r.Method == "POST" {
|
||||||
r.ParseForm()
|
r.ParseForm()
|
||||||
|
|
Loading…
Reference in a new issue