public function extendEditForm(AphrontRequest $request, AphrontFormView $form, array $values, array $issues)
 {
     parent::extendEditForm($request, $form, $values, $issues);
     $key_require = self::KEY_REQUIRE_SECURE;
     $v_require = idx($values, $key_require);
     $form->appendChild(id(new AphrontFormCheckboxControl())->addCheckbox($key_require, $v_require, pht("%s " . "Require users to enable 'secure browsing' on Facebook in order " . "to use Facebook to authenticate with Phabricator. This " . "improves security by preventing an attacker from capturing " . "an insecure Facebook session and escalating it into a " . "Phabricator session. Enabling it is recommended.", phutil_tag('strong', array(), pht('Require Secure Browsing:')))));
 }
 public function extendEditForm(AphrontRequest $request, AphrontFormView $form, array $values, array $issues)
 {
     $is_setup = $this->isCreate();
     $e_required = $request->isFormPost() ? null : true;
     $v_name = $values[self::PROPERTY_PHABRICATOR_NAME];
     if ($is_setup) {
         $e_name = idx($issues, self::PROPERTY_PHABRICATOR_NAME, $e_required);
     } else {
         $e_name = null;
     }
     $v_uri = $values[self::PROPERTY_PHABRICATOR_URI];
     $e_uri = idx($issues, self::PROPERTY_PHABRICATOR_URI, $e_required);
     if ($is_setup) {
         $form->appendChild(id(new AphrontFormTextControl())->setLabel(pht('Phabricator Instance Name'))->setValue($v_name)->setName(self::PROPERTY_PHABRICATOR_NAME)->setError($e_name)->setCaption(pht('Use lowercase letters, digits, and periods. For example: %s', phutil_tag('tt', array(), '`phabricator.oauthserver`'))));
     } else {
         $form->appendChild(id(new AphrontFormStaticControl())->setLabel(pht('Phabricator Instance Name'))->setValue($v_name));
     }
     $form->appendChild(id(new AphrontFormTextControl())->setLabel(pht('Phabricator Base URI'))->setValue($v_uri)->setName(self::PROPERTY_PHABRICATOR_URI)->setCaption(pht('The URI where the OAuth server instance of Phabricator is ' . 'installed. For example: %s', phutil_tag('tt', array(), 'https://phabricator.mycompany.com/')))->setError($e_uri));
     if (!$is_setup) {
         parent::extendEditForm($request, $form, $values, $issues);
     }
 }