Page MenuHomePhabricator

D10331.id24875.diff
No OneTemporary

D10331.id24875.diff

diff --git a/src/applications/auth/controller/PhabricatorAuthOneTimeLoginController.php b/src/applications/auth/controller/PhabricatorAuthOneTimeLoginController.php
--- a/src/applications/auth/controller/PhabricatorAuthOneTimeLoginController.php
+++ b/src/applications/auth/controller/PhabricatorAuthOneTimeLoginController.php
@@ -120,7 +120,7 @@
$next = '/';
if (!PhabricatorPasswordAuthProvider::getPasswordProvider()) {
$next = '/settings/panel/external/';
- } else if (PhabricatorEnv::getEnvConfig('account.editable')) {
+ } else {
// We're going to let the user reset their password without knowing
// the old one. Generate a one-time token for that.
diff --git a/src/applications/settings/panel/PhabricatorSettingsPanelPassword.php b/src/applications/settings/panel/PhabricatorSettingsPanelPassword.php
--- a/src/applications/settings/panel/PhabricatorSettingsPanelPassword.php
+++ b/src/applications/settings/panel/PhabricatorSettingsPanelPassword.php
@@ -16,15 +16,8 @@
}
public function isEnabled() {
- // There's no sense in showing a change password panel if the user
- // can't change their password...
-
- if (!PhabricatorEnv::getEnvConfig('account.editable')) {
- return false;
- }
-
- // ...or this install doesn't support password authentication at all.
-
+ // There's no sense in showing a change password panel if this install
+ // doesn't support password authentication.
if (!PhabricatorPasswordAuthProvider::getPasswordProvider()) {
return false;
}

File Metadata

Mime Type
text/plain
Expires
Tue, Oct 29, 5:36 PM (2 w, 12 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6753750
Default Alt Text
D10331.id24875.diff (1 KB)

Event Timeline