Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/revoker/PhabricatorAuthSessionRevoker.php
<?php | <?php | ||||
final class PhabricatorAuthSessionRevoker | final class PhabricatorAuthSessionRevoker | ||||
extends PhabricatorAuthRevoker { | extends PhabricatorAuthRevoker { | ||||
const REVOKERKEY = 'session'; | const REVOKERKEY = 'session'; | ||||
public function getRevokerName() { | |||||
return pht('Sessions'); | |||||
} | |||||
public function getRevokerDescription() { | |||||
return pht( | |||||
"Revokes all active login sessions.\n\n". | |||||
"Affected users will be logged out and need to log in again."); | |||||
} | |||||
public function revokeAllCredentials() { | public function revokeAllCredentials() { | ||||
$table = new PhabricatorAuthSession(); | $table = new PhabricatorAuthSession(); | ||||
$conn = $table->establishConnection('w'); | $conn = $table->establishConnection('w'); | ||||
queryfx( | queryfx( | ||||
$conn, | $conn, | ||||
'DELETE FROM %T', | 'DELETE FROM %T', | ||||
$table->getTableName()); | $table->getTableName()); | ||||
Show All 18 Lines |