Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F548512
PhabricatorAuthSessionRevoker.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
941 B
Referenced Files
None
Subscribers
None
PhabricatorAuthSessionRevoker.php
View Options
<?php
final
class
PhabricatorAuthSessionRevoker
extends
PhabricatorAuthRevoker
{
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
()
{
$table
=
new
PhabricatorAuthSession
();
$conn
=
$table
->
establishConnection
(
'w'
);
queryfx
(
$conn
,
'DELETE FROM %T'
,
$table
->
getTableName
());
return
$conn
->
getAffectedRows
();
}
public
function
revokeCredentialsFrom
(
$object
)
{
$table
=
new
PhabricatorAuthSession
();
$conn
=
$table
->
establishConnection
(
'w'
);
queryfx
(
$conn
,
'DELETE FROM %T WHERE userPHID = %s'
,
$table
->
getTableName
(),
$object
->
getPHID
());
return
$conn
->
getAffectedRows
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:50 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
121886
Default Alt Text
PhabricatorAuthSessionRevoker.php (941 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment