From 26d70f0ea7b8dc84b2451b3965d9e81d7b25a9a8 Mon Sep 17 00:00:00 2001 From: Christian Krinitsin Date: Fri, 25 Apr 2025 23:01:48 +0200 Subject: fix password_length check --- authenticate/authenticate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'authenticate/authenticate.go') diff --git a/authenticate/authenticate.go b/authenticate/authenticate.go index e0f2ddd..9341d14 100644 --- a/authenticate/authenticate.go +++ b/authenticate/authenticate.go @@ -162,7 +162,7 @@ func RegisterPOST(c *gin.Context) { return } - if len(password) <= 0 && len(password) <= 72 { + if len(password) <= 0 || len(password) > 72 { c.HTML(http.StatusBadRequest, "register.html", gin.H{ "error": "Invalid password", }) -- cgit 1.4.1