Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/controller/PhabricatorAuthLinkController.php
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | public function handleRequest(AphrontRequest $request) { | ||||
switch ($action) { | switch ($action) { | ||||
case 'link': | case 'link': | ||||
if ($accounts) { | if ($accounts) { | ||||
return $this->renderErrorPage( | return $this->renderErrorPage( | ||||
pht('Account Already Linked'), | pht('Account Already Linked'), | ||||
array( | array( | ||||
pht( | pht( | ||||
'Your Phabricator account is already linked to an external '. | 'Your %s account is already linked to an external '. | ||||
'account for this provider.'), | 'account for this provider.', | ||||
PhabricatorPlatformSite::getName()), | |||||
)); | )); | ||||
} | } | ||||
break; | break; | ||||
case 'refresh': | case 'refresh': | ||||
if (!$accounts) { | if (!$accounts) { | ||||
return $this->renderErrorPage( | return $this->renderErrorPage( | ||||
pht('No Account Linked'), | pht('No Account Linked'), | ||||
array( | array( | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0