3 final class PhabricatorAuthSessionRevoker
4 extends PhabricatorAuthRevoker
{
6 const REVOKERKEY
= 'session';
8 public function getRevokerName() {
9 return pht('Sessions');
12 public function getRevokerDescription() {
14 "Revokes all active login sessions.\n\n".
15 "Affected users will be logged out and need to log in again.");
18 public function revokeAllCredentials() {
19 $table = new PhabricatorAuthSession();
20 $conn = $table->establishConnection('w');
25 $table->getTableName());
27 return $conn->getAffectedRows();
30 public function revokeCredentialsFrom($object) {
31 $table = new PhabricatorAuthSession();
32 $conn = $table->establishConnection('w');
36 'DELETE FROM %T WHERE userPHID = %s',
37 $table->getTableName(),
40 return $conn->getAffectedRows();