diff options
author | Luciano Lima <lucianomlima@ymail.com> | 2013-01-30 00:05:38 -0300 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2013-01-30 07:41:31 -0500 |
commit | 6a73322353db0e17bdf86a9db8d7d3f2582740de (patch) | |
tree | 21ac82a42d8aa6c203525e3421441098242ed1de /engine/lib | |
parent | c2aab4e6df792dced8ce014c8d9c6feee3b24f39 (diff) | |
download | elgg-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')
-rw-r--r-- | engine/lib/web_services.php | 2 |
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); } } |