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

Function is_mfa_session_authenticated

web/pgadmin/authenticate/mfa/utils.py:127–134  ·  view source on GitHub ↗

Checks if this session is authenticated, or not. Returns: bool: Is this session authenticated?

()

Source from the content-addressed store, hash-verified

125
126
127def is_mfa_session_authenticated() -> bool:
128 """
129 Checks if this session is authenticated, or not.
130
131 Returns:
132 bool: Is this session authenticated?
133 """
134 return session.get('mfa_authenticated', False) is True
135
136
137def mfa_enabled(execute_if_enabled, execute_if_disabled) -> None:

Callers 1

registration_viewFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected