Differential D10585 Diff 25583 src/applications/conduit/controller/PhabricatorConduitAPIController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conduit/controller/PhabricatorConduitAPIController.php
Show First 20 Lines • Show All 273 Lines • ▼ Show 20 Lines | if (isset($metadata['authUser'])) { | ||||
$api_request, | $api_request, | ||||
$user); | $user); | ||||
} | } | ||||
$session_key = idx($metadata, 'sessionKey'); | $session_key = idx($metadata, 'sessionKey'); | ||||
if (!$session_key) { | if (!$session_key) { | ||||
return array( | return array( | ||||
'ERR-INVALID-SESSION', | 'ERR-INVALID-SESSION', | ||||
'Session key is not present.' | 'Session key is not present.', | ||||
); | ); | ||||
} | } | ||||
$user = id(new PhabricatorAuthSessionEngine()) | $user = id(new PhabricatorAuthSessionEngine()) | ||||
->loadUserForSession(PhabricatorAuthSession::TYPE_CONDUIT, $session_key); | ->loadUserForSession(PhabricatorAuthSession::TYPE_CONDUIT, $session_key); | ||||
if (!$user) { | if (!$user) { | ||||
return array( | return array( | ||||
▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines |