aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-24 20:38:21 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-24 20:38:21 +0000
commit1254960ec68eacbec7a7155a9c4addd5685d8586 (patch)
tree4b98ec527ac2180fec02ec0e06e58ab80c77c5da /engine
parent4426b6fb5631d430fcac0664a8d011e8ef1e3558 (diff)
downloadelgg-1254960ec68eacbec7a7155a9c4addd5685d8586.tar.gz
elgg-1254960ec68eacbec7a7155a9c4addd5685d8586.tar.bz2
Minor improvements to failure mode.
git-svn-id: https://code.elgg.org/elgg/trunk@2122 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/api.php b/engine/lib/api.php
index 191051b47..09e6a8edb 100644
--- a/engine/lib/api.php
+++ b/engine/lib/api.php
@@ -546,7 +546,7 @@
return $token;
}
- return new ErrorResult();
+ throw new SecurityException(elgg_echo('SecurityException:authenticationfailed'));
}
// The authentication token api