Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15410004
D18895.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D18895.diff
View Options
diff --git a/src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php b/src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php
--- a/src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php
+++ b/src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php
@@ -34,6 +34,10 @@
'name' => 'everywhere',
'help' => pht('Revoke from all credential owners.'),
),
+ array(
+ 'name' => 'force',
+ 'help' => pht('Revoke credentials without prompting.'),
+ ),
));
}
@@ -41,6 +45,7 @@
$viewer = PhabricatorUser::getOmnipotentUser();
$all_types = PhabricatorAuthRevoker::getAllRevokers();
+ $is_force = $args->getArg('force');
$type = $args->getArg('type');
$is_everything = $args->getArg('everything');
@@ -97,7 +102,7 @@
}
}
- if ($is_everywhere) {
+ if ($is_everywhere && !$is_force) {
echo id(new PhutilConsoleBlock())
->addParagraph(
pht(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 20, 6:31 AM (3 d, 18 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7712686
Default Alt Text
D18895.diff (1 KB)
Attached To
Mode
D18895: Add a "--force" flag to `bin/auth revoke`
Attached
Detach File
Event Timeline
Log In to Comment