Disable the master password requirement when using alternative authentication sources. Fixes #7012

This commit is contained in:
Khushboo Vashi
2022-04-11 13:45:53 +05:30
committed by Akshay Joshi
parent bf974e73ce
commit 0c823455a0
7 changed files with 77 additions and 10 deletions

View File

@@ -750,7 +750,8 @@ def index():
auth_source = session['auth_source_manager'][
'source_friendly_name']
if not config.MASTER_PASSWORD_REQUIRED and 'pass_enc_key' in session:
if not config.MASTER_PASSWORD_REQUIRED and 'pass_enc_key' in session\
and not config.ALTERNATE_ENCRYPTION_KEY:
session['allow_save_password'] = False
response = Response(render_template(