summaryrefslogtreecommitdiff
path: root/app/Api
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-04-26 22:55:56 -0400
committerFrederic Guillot <fred@kanboard.net>2016-04-26 22:55:56 -0400
commit1936a74cb3affef4f439c695d7e3c9eacc5a9aae (patch)
treea080d8e0cdc77bf9fb1c88f870edc889e0fe0b07 /app/Api
parent36bdcf193b6d54eefe27f58689c44953715a4dad (diff)
Update JsonRPC library
Diffstat (limited to 'app/Api')
-rw-r--r--app/Api/Auth.php4
-rw-r--r--app/Api/Base.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/app/Api/Auth.php b/app/Api/Auth.php
index 6c6e1ebe..1cc6627f 100644
--- a/app/Api/Auth.php
+++ b/app/Api/Auth.php
@@ -2,7 +2,7 @@
namespace Kanboard\Api;
-use JsonRPC\AuthenticationFailure;
+use JsonRPC\Exception\AuthenticationFailureException;
/**
* Base class
@@ -32,7 +32,7 @@ class Auth extends Base
$this->checkProcedurePermission(false, $method);
} else {
$this->logger->error('API authentication failure for '.$username);
- throw new AuthenticationFailure('Wrong credentials');
+ throw new AuthenticationFailureException('Wrong credentials');
}
}
diff --git a/app/Api/Base.php b/app/Api/Base.php
index 2cc62da8..ea817f7d 100644
--- a/app/Api/Base.php
+++ b/app/Api/Base.php
@@ -2,7 +2,7 @@
namespace Kanboard\Api;
-use JsonRPC\AccessDeniedException;
+use JsonRPC\Exception\AccessDeniedException;
/**
* Base class