diff options
author | Michal Čihař <michal@cihar.com> | 2005-11-28 00:06:17 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2005-11-28 00:06:17 +0300 |
commit | 3913d28de7482d5b52ee6497d6d15d1fcf7b8d1a (patch) | |
tree | 4fda95c863964a582abd21090d351df7b300fa85 /scripts | |
parent | 7670cdfa7e736b76e6b7249f640ebd78445d89c4 (diff) |
better blowfish secret generation
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/setup.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/setup.php b/scripts/setup.php index aeb39d9c0e..08e8864cbe 100644 --- a/scripts/setup.php +++ b/scripts/setup.php @@ -970,8 +970,7 @@ switch ($action) { $show_info = TRUE; if ($new_server['auth_type'] == 'cookie' && empty($cfg['blowfish_secret'])) { message('notice', 'You did not have configured blowfish secret and you want to use cookie authentication so I generated blowfish secret for you. It is used to encrypt cookies.', 'Blowfist secret generated'); - // FIXME: Find better way: - $cfg['blowfish_secret'] = '' . rand(); + $cfg['blowfish_secret'] = uniqid('', TRUE); } } unset($new_server); |