aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/web_services.php
diff options
context:
space:
mode:
authorLuciano Lima <lucianomlima@ymail.com>2013-01-30 00:05:38 -0300
committerCash Costello <cash.costello@gmail.com>2013-01-30 07:41:31 -0500
commit6a73322353db0e17bdf86a9db8d7d3f2582740de (patch)
tree21ac82a42d8aa6c203525e3421441098242ed1de /engine/lib/web_services.php
parentc2aab4e6df792dced8ce014c8d9c6feee3b24f39 (diff)
downloadelgg-6a73322353db0e17bdf86a9db8d7d3f2582740de.tar.gz
elgg-6a73322353db0e17bdf86a9db8d7d3f2582740de.tar.bz2
Set the error code when user authentication fail
Signed-off-by: Luciano Lima <lucianomlima@ymail.com>
Diffstat (limited to 'engine/lib/web_services.php')
-rw-r--r--engine/lib/web_services.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/web_services.php b/engine/lib/web_services.php
index 1a15ecc15..b6289184a 100644
--- a/engine/lib/web_services.php
+++ b/engine/lib/web_services.php
@@ -178,7 +178,7 @@ function authenticate_method($method) {
// check if user authentication is required
if ($API_METHODS[$method]["require_user_auth"] == true) {
if ($user_auth_result == false) {
- throw new APIException($user_pam->getFailureMessage());
+ throw new APIException($user_pam->getFailureMessage(), ErrorResult::$RESULT_FAIL_AUTHTOKEN);
}
}