From fd3c6cb9396fe9e5158a695b18e59ce27ad19922 Mon Sep 17 00:00:00 2001 From: slawkens Date: Wed, 6 Jan 2021 22:50:09 +0100 Subject: [PATCH] Set password limit to 29 characters (#456) * Set password limit 29 --- register.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/register.php b/register.php index 7c8cdf7..b54a2b2 100644 --- a/register.php +++ b/register.php @@ -65,8 +65,8 @@ if (empty($_POST) === false) { if (strlen($_POST['password']) < 6) { $errors[] = 'Your password must be at least 6 characters.'; } - if (strlen($_POST['password']) > 100) { - $errors[] = 'Your password must be less than 100 characters.'; + if (strlen($_POST['password']) > 29) { + $errors[] = 'Your password must be less than 30 characters.'; } if ($_POST['password'] !== $_POST['password_again']) { $errors[] = 'Your passwords do not match.';