Something went wrong. Try again.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
Something went wrong. Try again.
PHP
123456789101112131415161718192021222324252627282930<?php
final class AphrontFormPasswordControl extends AphrontFormControl {
private $disableAutocomplete;
public function setDisableAutocomplete($disable_autocomplete) { $this->disableAutocomplete = $disable_autocomplete; return $this; }
protected function getCustomControlClass() { return 'aphront-form-control-password'; }
protected function renderInput() { return phutil_tag( 'input', array( 'type' => 'password', 'name' => $this->getName(), 'value' => $this->getValue(), 'disabled' => $this->getDisabled() ? 'disabled' : null, 'autocomplete' => ($this->disableAutocomplete ? 'off' : null), 'id' => $this->getID(), )); }
}