aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/api.php2
-rw-r--r--languages/en.php1
2 files changed, 2 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
diff --git a/languages/en.php b/languages/en.php
index baf160767..7ad0285f4 100644
--- a/languages/en.php
+++ b/languages/en.php
@@ -154,6 +154,7 @@
'InstallationException:DatarootUnderPath' => "Your data directory %s must be outside of your install path.",
'InstallationException:DatarootBlank' => "You have not specified a data directory.",
+ 'SecurityException:authenticationfailed' => "User could not be authenticated",
/**
* API
*/