From 601c2fcc71f13caef78563d676c78e3118d509a7 Mon Sep 17 00:00:00 2001
From: Mark Samman <mark.samman@gmail.com>
Date: Wed, 29 Oct 2014 19:50:36 +0100
Subject: [PATCH] Increase max password length from 32 to 100

---
 changepassword.php | 4 ++--
 register.php       | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/changepassword.php b/changepassword.php
index 0027d5c..8c698ec 100644
--- a/changepassword.php
+++ b/changepassword.php
@@ -29,8 +29,8 @@ if (empty($_POST) === false) {
 			$errors[] = 'Your new passwords do not match.';
 		} else if (strlen($_POST['new_password']) < 6) {
 			$errors[] = 'Your new passwords must be at least 6 characters.';
-		} else if (strlen($_POST['new_password']) > 32) {
-			$errors[] = 'Your new passwords must be less than 33 characters.';
+		} else if (strlen($_POST['new_password']) > 100) {
+			$errors[] = 'Your new passwords must be less than 100 characters.';
 		}
 	} else {
 		$errors[] = 'Your current password is incorrect.';
diff --git a/register.php b/register.php
index 6286972..93b2bc3 100644
--- a/register.php
+++ b/register.php
@@ -57,8 +57,8 @@ if (empty($_POST) === false) {
 		if (strlen($_POST['password']) < 6) {
 			$errors[] = 'Your password must be at least 6 characters.';
 		}
-		if (strlen($_POST['password']) > 33) {
-			$errors[] = 'Your password must be less than 33 characters.';
+		if (strlen($_POST['password']) > 100) {
+			$errors[] = 'Your password must be less than 100 characters.';
 		}
 		if ($_POST['password'] !== $_POST['password_again']) {
 			$errors[] = 'Your passwords do not match.';