Differential D20738 Diff 49451 src/applications/phortune/controller/external/PhortuneExternalController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/controller/external/PhortuneExternalController.php
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | if (!phutil_hashes_are_identical($access_key, $actual_key)) { | ||||
'To access information about this payment account, follow '. | 'To access information about this payment account, follow '. | ||||
'a more recent link or ask a user with access to give you '. | 'a more recent link or ask a user with access to give you '. | ||||
'an updated link.')); | 'an updated link.')); | ||||
} | } | ||||
return $dialog; | return $dialog; | ||||
} | } | ||||
// TODO: Test that status is good. | switch ($email->getStatus()) { | ||||
case PhortuneAccountEmailStatus::STATUS_ACTIVE: | |||||
break; | |||||
case PhortuneAccountEmailStatus::STATUS_DISABLED: | |||||
return $this->newDialog() | |||||
->setTitle(pht('Address Disabled')) | |||||
->appendParagraph( | |||||
pht( | |||||
'This email address (%s) has been disabled and no longer has '. | |||||
'access to this payment account.', | |||||
$email_display)); | |||||
case PhortuneAccountEmailStatus::STATUS_UNSUBSCRIBED: | |||||
return $this->newDialog() | |||||
->setTitle(pht('Permanently Unsubscribed')) | |||||
->appendParagraph( | |||||
pht( | |||||
'This email address (%s) has been permanently unsubscribed '. | |||||
'and no longer has access to this payment account.', | |||||
$email_display)); | |||||
break; | |||||
default: | |||||
return new Aphront404Response(); | |||||
} | |||||
$this->email = $email; | $this->email = $email; | ||||
return $this->handleExternalRequest($request); | return $this->handleExternalRequest($request); | ||||
} | } | ||||
final protected function newExternalCrumbs() { | final protected function newExternalCrumbs() { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |