Ensure migrate stored password dialogue is shown only if any server passwords are saved. #5123

pull/6339/head
Nikhil Mohite 2023-05-30 16:44:25 +05:30 committed by GitHub
parent 7d0ba9448b
commit cbb89b09b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 2 deletions

View File

@ -873,9 +873,17 @@ def set_master_password():
present=True,
)
else:
is_master_password_present = True
keyring_name = ''
for server in all_server:
if server.password and server.save_password:
is_master_password_present = False
keyring_name = config.KEYRING_NAME
break
return form_master_password_response(
present=False,
keyring_name=config.KEYRING_NAME
present=is_master_password_present,
keyring_name=keyring_name
)
except Exception as e:
current_app.logger.warning(