diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-06-17 15:50:24 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-06-17 15:50:24 +0200 |
commit | 2340660a5b93402946a36645ca05836c06f5f816 (patch) | |
tree | 7df5da0fb025d9283f75c830ac4a593e378dcdc8 | |
parent | 5a8cfab68f147aa094a0e96ac03c6b41937c40e0 (diff) | |
download | nextcloud-server-2340660a5b93402946a36645ca05836c06f5f816.tar.gz nextcloud-server-2340660a5b93402946a36645ca05836c06f5f816.zip |
PasswordLoginForbidden must extend NotAuthenticated
The auth code from Sabre will forward NotAuthenticated exceptions but
in the case of a generic exception, it is packaged as "service not
available".
-rw-r--r-- | apps/dav/lib/Connector/Sabre/Exception/PasswordLoginForbidden.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Exception/PasswordLoginForbidden.php b/apps/dav/lib/Connector/Sabre/Exception/PasswordLoginForbidden.php index 78b27d0544c..6537da3d56d 100644 --- a/apps/dav/lib/Connector/Sabre/Exception/PasswordLoginForbidden.php +++ b/apps/dav/lib/Connector/Sabre/Exception/PasswordLoginForbidden.php @@ -23,10 +23,10 @@ namespace OCA\DAV\Connector\Sabre\Exception; use DOMElement; -use Sabre\DAV\Exception; use Sabre\DAV\Server; +use Sabre\DAV\Exception\NotAuthenticated; -class PasswordLoginForbidden extends Exception { +class PasswordLoginForbidden extends NotAuthenticated { const NS_OWNCLOUD = 'http://owncloud.org/ns'; |