Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/storage/PhabricatorUser.php
Show First 20 Lines • Show All 425 Lines • ▼ Show 20 Lines | while (true) { | ||||
unset($sessions[$establish_type]); | unset($sessions[$establish_type]); | ||||
} | } | ||||
if (++$retries > $session_limit) { | if (++$retries > $session_limit) { | ||||
throw new Exception("Failed to establish a session!"); | throw new Exception("Failed to establish a session!"); | ||||
} | } | ||||
} | } | ||||
$log = PhabricatorUserLog::newLog( | $log = PhabricatorUserLog::initializeNewLog( | ||||
$this, | |||||
$this, | $this, | ||||
$this->getPHID(), | |||||
PhabricatorUserLog::ACTION_LOGIN); | PhabricatorUserLog::ACTION_LOGIN); | ||||
$log->setDetails( | $log->setDetails( | ||||
array( | array( | ||||
'session_type' => $session_type, | 'session_type' => $session_type, | ||||
'session_issued' => $establish_type, | 'session_issued' => $establish_type, | ||||
)); | )); | ||||
$log->setSession($session_key); | $log->setSession($session_key); | ||||
$log->save(); | $log->save(); | ||||
▲ Show 20 Lines • Show All 466 Lines • Show Last 20 Lines |