diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-09-24 20:38:21 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-09-24 20:38:21 +0000 |
commit | 1254960ec68eacbec7a7155a9c4addd5685d8586 (patch) | |
tree | 4b98ec527ac2180fec02ec0e06e58ab80c77c5da | |
parent | 4426b6fb5631d430fcac0664a8d011e8ef1e3558 (diff) | |
download | elgg-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
-rw-r--r-- | engine/lib/api.php | 2 | ||||
-rw-r--r-- | languages/en.php | 1 |
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 */ |