diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-20 08:21:47 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-20 08:21:47 +0000 |
commit | a906ef7dcc58bce7f54b5b3a2c2692b84f6a1b54 (patch) | |
tree | 4b87f90da1102bd051babd4b5f26e85c8d5d66cf /js/lib | |
parent | 1e762e2f0cd14586a17e3697bb9a06883d0861b6 (diff) | |
download | elgg-a906ef7dcc58bce7f54b5b3a2c2692b84f6a1b54.tar.gz elgg-a906ef7dcc58bce7f54b5b3a2c2692b84f6a1b54.tar.bz2 |
Fixes #2620: Security token refresh action is now security/refreshtoken
git-svn-id: http://code.elgg.org/elgg/trunk@7367 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'js/lib')
-rw-r--r-- | js/lib/security.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/lib/security.js b/js/lib/security.js index 7f04f0cfb..b9d1be3a3 100644 --- a/js/lib/security.js +++ b/js/lib/security.js @@ -23,10 +23,11 @@ elgg.security.setToken = function(json) { /**
* Security tokens time out, so lets refresh those every so often
+ *
* @todo handle error and bad return data
*/
elgg.security.refreshToken = function() {
- elgg.action('ajax/securitytoken', function(data) {
+ elgg.action('security/refreshtoken', function(data) {
elgg.security.setToken(data.output);
});
};
@@ -55,7 +56,7 @@ elgg.security.addToken = function(data) { // no input! acts like a getter
if (elgg.isUndefined(data)) {
- return elgg.security.token;
+ return elgg.security.token;
}
// {...}
|