mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1. Added Master Password to increase the security of saved passwords. Fixes #4184
2. In server(web) mode, update all the saved server credentials when user password is changed. Fixes #3377
This commit is contained in:
committed by
Akshay Joshi
parent
6f0eafb223
commit
dfa892d2a2
@@ -59,6 +59,8 @@ if config.SERVER_MODE is True:
|
||||
config.SECURITY_CHANGEABLE = True
|
||||
config.SECURITY_POST_CHANGE_VIEW = 'browser.change_password'
|
||||
|
||||
# disable master password for test cases
|
||||
config.MASTER_PASSWORD_REQUIRED = False
|
||||
|
||||
from regression import test_setup
|
||||
from regression.feature_utils.app_starter import AppStarter
|
||||
@@ -187,7 +189,14 @@ def get_test_modules(arguments):
|
||||
global driver, app_starter, handle_cleanup
|
||||
|
||||
if not config.SERVER_MODE:
|
||||
exclude_pkgs.append("browser.tests")
|
||||
# following test cases applicable only for server mode
|
||||
exclude_pkgs.extend([
|
||||
"browser.tests.test_change_password",
|
||||
"browser.tests.test_gravatar_image_display",
|
||||
"browser.tests.test_login",
|
||||
"browser.tests.test_logout",
|
||||
"browser.tests.test_reset_password",
|
||||
])
|
||||
if arguments['exclude'] is not None:
|
||||
exclude_pkgs += arguments['exclude'].split(',')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user