diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-02-17 07:03:40 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-02-17 07:03:40 +0000 |
commit | 82ccbba12401cefd9398f70fb2ad763025fa3919 (patch) | |
tree | f8a5aced7474c90ea4e74f2b07b873ffad493f47 /core/helpers | |
parent | ae06ad3a414c9d112e5aae92118ad9d134c00056 (diff) |
Move private key generation into the installer so that we're not
generating it lazily.
Diffstat (limited to 'core/helpers')
-rw-r--r-- | core/helpers/access.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/core/helpers/access.php b/core/helpers/access.php index 9bf9da6c..6540e3b8 100644 --- a/core/helpers/access.php +++ b/core/helpers/access.php @@ -590,10 +590,6 @@ class access_Core { } static function private_key() { - if (!($key = module::get_var('core', 'private_key'))) { - $key = md5(uniqid(mt_rand(), true)) . md5(uniqid(mt_rand(), true)); - module::set_var('core', 'private_key', $key); - } - return $key; + return module::get_var("core", "private_key"); } } |