Differential D15715 Diff 37864 src/applications/passphrase/controller/PassphraseCredentialRevealController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/passphrase/controller/PassphraseCredentialRevealController.php
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | if ($request->isFormPost()) { | ||||
} else if (!strlen($secret->openEnvelope())) { | } else if (!strlen($secret->openEnvelope())) { | ||||
$body = pht('This credential has an empty secret.'); | $body = pht('This credential has an empty secret.'); | ||||
} else { | } else { | ||||
$body = id(new PHUIFormLayoutView()) | $body = id(new PHUIFormLayoutView()) | ||||
->appendChild( | ->appendChild( | ||||
id(new AphrontFormTextAreaControl()) | id(new AphrontFormTextAreaControl()) | ||||
->setLabel(pht('Plaintext')) | ->setLabel(pht('Plaintext')) | ||||
->setReadOnly(true) | ->setReadOnly(true) | ||||
->setCustomClass('PhabricatorMonospaced') | |||||
->setHeight(AphrontFormTextAreaControl::HEIGHT_VERY_TALL) | ->setHeight(AphrontFormTextAreaControl::HEIGHT_VERY_TALL) | ||||
->setValue($secret->openEnvelope())); | ->setValue($secret->openEnvelope())); | ||||
} | } | ||||
// NOTE: Disable workflow on the cancel button to reload the page so | // NOTE: Disable workflow on the cancel button to reload the page so | ||||
// the viewer can see that their view was logged. | // the viewer can see that their view was logged. | ||||
$dialog = id(new AphrontDialogView()) | $dialog = id(new AphrontDialogView()) | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |