Permalink
Browse files

Fix minimum password length check

Fixes #1126
  • Loading branch information...
Quy committed Jan 8, 2019
1 parent 9aeaa82 commit 24e5c1356b9682bf93a8fecddfe033241c53b8e3
Showing with 1 addition and 1 deletion.
  1. +1 −1 install.php
@@ -166,7 +166,7 @@ function generate_config_file()
else if (preg_match('%(?:\[/?(?:b|u|i|h|colou?r|quote|code|img|url|email|list)\]|\[(?:code|quote|list)=)%i', $username))
$alerts[] = $lang_install['Username 6'];
if (pun_strlen($password1) < 6)
if (pun_strlen($password1) < 9)
$alerts[] = $lang_install['Short password'];
else if ($password1 != $password2)
$alerts[] = $lang_install['Passwords not match'];

0 comments on commit 24e5c13

Please sign in to comment.