summaryrefslogtreecommitdiff
path: root/core/helpers/access.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/helpers/access.php')
-rw-r--r--core/helpers/access.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/helpers/access.php b/core/helpers/access.php
index 573118b5..9bf9da6c 100644
--- a/core/helpers/access.php
+++ b/core/helpers/access.php
@@ -588,4 +588,12 @@ 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;
+ }
}