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
()
| 163 | |
| 164 | |
| 165 | def 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 | |
| 180 | def get_master_password_from_master_hook(): |
no test coverage detected