Page MenuHomePhabricator

D10331.id24872.diff
No OneTemporary

D10331.id24872.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
Sat, Sep 21, 8:29 PM (19 h, 38 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6626492
Default Alt Text
D10331.id24872.diff (1 KB)

Event Timeline