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

@@ -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']