diff options
Diffstat (limited to 'lib/private/legacy/api.php')
-rw-r--r-- | lib/private/legacy/api.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/legacy/api.php b/lib/private/legacy/api.php index 3fcd9a93ec1..e3d597fc64e 100644 --- a/lib/private/legacy/api.php +++ b/lib/private/legacy/api.php @@ -354,8 +354,9 @@ class OC_API { // basic auth - because OC_User::login will create a new session we shall only try to login // if user and pass are set $userSession = \OC::$server->getUserSession(); + $request = \OC::$server->getRequest(); try { - $loginSuccess = $userSession->tryTokenLogin(); + $loginSuccess = $userSession->tryTokenLogin($request); if (!$loginSuccess) { $loginSuccess = $userSession->tryBasicAuthLogin(); } |