aboutsummaryrefslogtreecommitdiff
path: root/actions/security
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-01 22:11:20 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-01 22:11:20 +0000
commit4a2721032e5adb4ad2460befd9af77be4996d2a0 (patch)
treec635a38df6406055a1a0d111bdc02d4dcb41b71b /actions/security
parent7e4cc929919f05e5b31c6ff7d1ed9b8e53e8a95a (diff)
downloadelgg-4a2721032e5adb4ad2460befd9af77be4996d2a0.tar.gz
elgg-4a2721032e5adb4ad2460befd9af77be4996d2a0.tar.bz2
Refs #2538: Added some models, inheritance, more bootstrapping code
git-svn-id: http://code.elgg.org/elgg/trunk@7183 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/security')
-rw-r--r--actions/security/refreshtoken.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/actions/security/refreshtoken.php b/actions/security/refreshtoken.php
new file mode 100644
index 000000000..74a72c4af
--- /dev/null
+++ b/actions/security/refreshtoken.php
@@ -0,0 +1,5 @@
+<?php
+$ts = time();
+$token = generate_action_token($ts);
+
+echo json_encode(array('__elgg_ts' => $ts, '__elgg_token' => $token)); \ No newline at end of file