diff --git a/install.php b/install.php
index 44c01f7e..0deac19f 100644
--- a/install.php
+++ b/install.php
@@ -309,10 +309,10 @@ function install($adminPassword, $email, $timezoneOffset)
file_put_contents(PATH_DATABASES.'site.php', $dataHead.json_encode($data, JSON_PRETTY_PRINT), LOCK_EX);
+ // File users.php
$salt = getRandomString();
$passwordHash = sha1($adminPassword.$salt);
- // File users.php
$data = array(
'admin'=>array(
'firstName'=>'',
@@ -329,7 +329,11 @@ function install($adminPassword, $email, $timezoneOffset)
file_put_contents(PATH_DATABASES.'users.php', $dataHead.json_encode($data, JSON_PRETTY_PRINT), LOCK_EX);
// File security.php
+ $randomKey = getRandomString();
+ $randomKey = sha1($randomKey);
+
$data = array(
+ 'key1'=>$randomKey,
'minutesBlocked'=>5,
'numberFailuresAllowed'=>10,
'blackList'=>array()
@@ -424,9 +428,9 @@ function checkPOST($args)
global $Language;
// Check empty password
- if(empty($args['password']))
+ if( strlen($args['password']) < 6 )
{
- return '
'.$Language->g('The password field is empty').'
';
+ return ''.$Language->g('Password must be at least 6 characters long').'
';
}
// Check invalid email
diff --git a/kernel/helpers/email.class.php b/kernel/helpers/email.class.php
index 102088d5..0f248049 100644
--- a/kernel/helpers/email.class.php
+++ b/kernel/helpers/email.class.php
@@ -15,9 +15,9 @@ class Email {
BLUDIT
-
-
-
BLUDIT
+
+
+
BLUDIT
'.$args['message'].'
diff --git a/kernel/security.class.php b/kernel/security.class.php
index 2567ac16..78b8495f 100644
--- a/kernel/security.class.php
+++ b/kernel/security.class.php
@@ -3,6 +3,7 @@
class Security extends dbJSON
{
private $dbFields = array(
+ 'key1'=>'Where we go we dont need roads',
'minutesBlocked'=>5,
'numberFailuresAllowed'=>10,
'blackList'=>array()
diff --git a/languages/en_US.json b/languages/en_US.json
index df456ee9..c91025af 100644
--- a/languages/en_US.json
+++ b/languages/en_US.json
@@ -196,5 +196,7 @@
"general-settings": "General settings",
"advanced-settings": "Advanced settings",
"manage-users": "Manage users",
- "view-and-edit-your-profile": "View and edit your profile."
+ "view-and-edit-your-profile": "View and edit your profile.",
+
+ "password-must-be-at-least-6-characters-long": "Password must be at least 6 characters long"
}