Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/engine/PhabricatorAuthSessionEngine.php
Show First 20 Lines • Show All 291 Lines • ▼ Show 20 Lines | foreach ($sessions as $key => $session) { | ||||
continue; | continue; | ||||
} | } | ||||
} | } | ||||
$session->delete(); | $session->delete(); | ||||
} | } | ||||
} | } | ||||
public function logoutSession( | |||||
PhabricatorUser $user, | |||||
PhabricatorAuthSession $session) { | |||||
$log = PhabricatorUserLog::initializeNewLog( | |||||
$user, | |||||
$user->getPHID(), | |||||
PhabricatorUserLog::ACTION_LOGOUT); | |||||
$log->save(); | |||||
$extensions = PhabricatorAuthSessionEngineExtension::getAllExtensions(); | |||||
foreach ($extensions as $extension) { | |||||
$extension->didLogout($user, array($session)); | |||||
} | |||||
$session->delete(); | |||||
} | |||||
/* -( High Security )------------------------------------------------------ */ | /* -( High Security )------------------------------------------------------ */ | ||||
/** | /** | ||||
* Require high security, or prompt the user to enter high security. | * Require high security, or prompt the user to enter high security. | ||||
* | * | ||||
* If the user's session is in high security, this method will return a | * If the user's session is in high security, this method will return a | ||||
▲ Show 20 Lines • Show All 410 Lines • Show Last 20 Lines |