Fixed an issue where the Change Password menu option is missing for internal

authentication source when more than one authentication source is defined.

Fixes #6989
This commit is contained in:
Akshay Joshi 2021-11-22 11:02:26 +05:30
parent 246bb01736
commit a701e8c766
2 changed files with 2 additions and 2 deletions

View File

@ -20,4 +20,5 @@ Bug fixes
| `Issue #6906 <https://redmine.postgresql.org/issues/6906>`_ - Fixed an issue where referenced table drop-down should be disabled in foreign key -> columns after one row is added.
| `Issue #6964 <https://redmine.postgresql.org/issues/6964>`_ - Fixed an issue where properties of the database should not be visible after removing the database.
| `Issue #6986 <https://redmine.postgresql.org/issues/6986>`_ - Fixed an issue where the user can't debug function with timestamp parameter.
| `Issue #6989 <https://redmine.postgresql.org/issues/6989>`_ - Fixed an issue where the Change Password menu option is missing for internal authentication source when more than one authentication source is defined.
| `Issue #7006 <https://redmine.postgresql.org/issues/7006>`_ - Ensure that Python 3.10 and the latest eventlet dependency should not break the application.

View File

@ -740,8 +740,7 @@ def index():
session['allow_save_password'] = True
if config.SERVER_MODE:
if len(config.AUTHENTICATION_SOURCES) == 1\
and INTERNAL in config.AUTHENTICATION_SOURCES:
if session['auth_source_manager']['current_source'] == INTERNAL:
auth_only_internal = True
auth_source = session['auth_source_manager'][
'source_friendly_name']