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

Function is_mfa_enabled

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

Returns True if MFA is enabled otherwise False Returns: bool: Is MFA Enabled?

()

Source from the content-addressed store, hash-verified

322
323
324def is_mfa_enabled() -> bool:
325 """
326 Returns True if MFA is enabled otherwise False
327
328 Returns:
329 bool: Is MFA Enabled?
330 """
331 return mfa_enabled(lambda: True, lambda: False)
332
333
334def mfa_delete(auth_name: str) -> bool:

Callers 2

utilsFunction · 0.90
registration_viewFunction · 0.85

Calls 1

mfa_enabledFunction · 0.85

Tested by

no test coverage detected