Differential D21787 Diff 51943 src/applications/oauthserver/controller/client/PhabricatorOAuthClientDisableController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/oauthserver/controller/client/PhabricatorOAuthClientDisableController.php
Show All 37 Lines | if ($request->isFormPost()) { | ||||
return id(new AphrontRedirectResponse())->setURI($done_uri); | return id(new AphrontRedirectResponse())->setURI($done_uri); | ||||
} | } | ||||
if ($is_disable) { | if ($is_disable) { | ||||
$title = pht('Disable OAuth Application'); | $title = pht('Disable OAuth Application'); | ||||
$body = pht( | $body = pht( | ||||
'Really disable the %s OAuth application? Users will no longer be '. | 'Really disable the %s OAuth application? Users will no longer be '. | ||||
'able to authenticate against it, nor access Phabricator using '. | 'able to authenticate against it, nor access this server using '. | ||||
'tokens generated by this application.', | 'tokens generated by this application.', | ||||
phutil_tag('strong', array(), $client->getName())); | phutil_tag('strong', array(), $client->getName())); | ||||
$button = pht('Disable Application'); | $button = pht('Disable Application'); | ||||
} else { | } else { | ||||
$title = pht('Enable OAuth Application'); | $title = pht('Enable OAuth Application'); | ||||
$body = pht( | $body = pht( | ||||
'Really enable the %s OAuth application? Users will be able to '. | 'Really enable the %s OAuth application? Users will be able to '. | ||||
'authenticate against it, and existing tokens will become usable '. | 'authenticate against it, and existing tokens will become usable '. | ||||
Show All 13 Lines |