aboutsummaryrefslogtreecommitdiff
path: root/actions/admin/site/regenerate_secret.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/admin/site/regenerate_secret.php')
-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);