diff options
Diffstat (limited to 'lib/setup.php')
-rw-r--r-- | lib/setup.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/setup.php b/lib/setup.php index a096fdbb4cf..5f1fb1525ec 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -73,6 +73,10 @@ class OC_Setup { $dbtype='sqlite3'; } + //generate a random salt that is used to salt the local user passwords + $salt=mt_rand(1000,9000).mt_rand(1000,9000).mt_rand(1000,9000).mt_rand(1000,9000).mt_rand(1000,9000).mt_rand(1000,9000).mt_rand(1000,9000).mt_rand(1000,9000); + OC_Config::setValue('passwordsalt', $salt); + //write the config file OC_Config::setValue('datadirectory', $datadir); OC_Config::setValue('dbtype', $dbtype); |