Trying a utility file
This commit is contained in:
parent
93d0744f92
commit
52569a4b08
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ func handleNewAccount(w http.ResponseWriter, r *http.Request, l *ldap.Conn, invi
|
||||||
password1 := strings.Join(r.Form["password"], "")
|
password1 := strings.Join(r.Form["password"], "")
|
||||||
password2 := strings.Join(r.Form["password2"], "")
|
password2 := strings.Join(r.Form["password2"], "")
|
||||||
|
|
||||||
if password1 == password2 {
|
if password1 != password2 {
|
||||||
data.Success = false
|
data.Success = false
|
||||||
data.ErrorPasswordMismatch = true
|
data.ErrorPasswordMismatch = true
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue