MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / process_masterpass_disabled

Function process_masterpass_disabled

web/pgadmin/utils/master_password.py:165–177  ·  view source on GitHub ↗

On master password disable, remove the connection data from session as it may have saved password which will cause trouble :param session: Flask session :param conn_data: connection manager copy from session if any

()

Source from the content-addressed store, hash-verified

163
164
165def process_masterpass_disabled():
166 """
167 On master password disable, remove the connection data from session as it
168 may have saved password which will cause trouble
169 :param session: Flask session
170 :param conn_data: connection manager copy from session if any
171 """
172 if not config.SERVER_MODE and not config.MASTER_PASSWORD_REQUIRED \
173 and current_user.masterpass_check is not None:
174 cleanup_master_password()
175 return True
176
177 return False
178
179
180def get_master_password_from_master_hook():

Callers 2

set_master_passwordFunction · 0.90
_restoreMethod · 0.90

Calls 1

cleanup_master_passwordFunction · 0.85

Tested by

no test coverage detected