summary refs log tree commit diff stats
path: root/authenticate/authenticate.go
diff options
context:
space:
mode:
Diffstat (limited to 'authenticate/authenticate.go')
-rw-r--r--authenticate/authenticate.go2
1 files changed, 1 insertions, 1 deletions
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",
 		})