aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-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