Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/panel/PhabricatorPasswordSettingsPanel.php
<?php | <?php | ||||
final class PhabricatorPasswordSettingsPanel extends PhabricatorSettingsPanel { | final class PhabricatorPasswordSettingsPanel extends PhabricatorSettingsPanel { | ||||
public function getPanelKey() { | public function getPanelKey() { | ||||
return 'password'; | return 'password'; | ||||
} | } | ||||
public function getPanelName() { | public function getPanelName() { | ||||
return pht('Password'); | return pht('Password'); | ||||
} | } | ||||
public function getPanelMenuIcon() { | |||||
return 'fa-key'; | |||||
} | |||||
public function getPanelGroupKey() { | public function getPanelGroupKey() { | ||||
return PhabricatorSettingsAuthenticationPanelGroup::PANELGROUPKEY; | return PhabricatorSettingsAuthenticationPanelGroup::PANELGROUPKEY; | ||||
} | } | ||||
public function isEnabled() { | public function isEnabled() { | ||||
// There's no sense in showing a change password panel if this install | // There's no sense in showing a change password panel if this install | ||||
// doesn't support password authentication. | // doesn't support password authentication. | ||||
if (!PhabricatorPasswordAuthProvider::getPasswordProvider()) { | if (!PhabricatorPasswordAuthProvider::getPasswordProvider()) { | ||||
▲ Show 20 Lines • Show All 198 Lines • Show Last 20 Lines |