aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2013-06-10 23:16:45 -0400
committerPaweł Sroka <srokap@gmail.com>2013-11-04 04:24:47 +0100
commite98f933857548be9cd078416a93011ea9c2f3e3a (patch)
tree1ac16234f014062cd881b3a5c2cab74dc78aba00 /actions
parent550ef1fe32fc8da940c42359f7a6347e65138c85 (diff)
downloadelgg-e98f933857548be9cd078416a93011ea9c2f3e3a.tar.gz
elgg-e98f933857548be9cd078416a93011ea9c2f3e3a.tar.bz2
Allow regenerating site secret
Diffstat (limited to 'actions')
-rw-r--r--actions/admin/site/regenerate_secret.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/actions/admin/site/regenerate_secret.php b/actions/admin/site/regenerate_secret.php
new file mode 100644
index 000000000..3112fb5f3
--- /dev/null
+++ b/actions/admin/site/regenerate_secret.php
@@ -0,0 +1,11 @@
+<?php
+/**
+ * Generate a new site secret
+ */
+
+init_site_secret();
+elgg_reset_system_cache();
+
+system_message(elgg_echo('admin:site:secret_regenerated'));
+
+forward(REFERER);