From 52569a4b08737be6aeafcee5867d307e7deb53c8 Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Thu, 20 Jul 2023 14:06:42 +0200 Subject: [PATCH] Trying a utility file --- invite.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invite.go b/invite.go index 6452b4f..bfcc150 100644 --- a/invite.go +++ b/invite.go @@ -135,7 +135,7 @@ func handleNewAccount(w http.ResponseWriter, r *http.Request, l *ldap.Conn, invi password1 := strings.Join(r.Form["password"], "") password2 := strings.Join(r.Form["password2"], "") - if password1 == password2 { + if password1 != password2 { data.Success = false data.ErrorPasswordMismatch = true } else {