Spaces:
Sleeping
Sleeping
Download server/templates/level_14/auth.py from anonajay/lint_coding_agent: direct link, hf CLI and curl.
- Browser
- Download file 307 Bytes
-
https://huggingface.co/spaces/anonajay/lint_coding_agent/resolve/main/server/templates/level_14/auth.py
- Command line
-
hf download hf://spaces/anonajay/lint_coding_agent/server/templates/level_14/auth.py
-
curl -L -o auth.py https://huggingface.co/spaces/anonajay/lint_coding_agent/resolve/main/server/templates/level_14/auth.py
307 Bytes
| def check_user_access(user): | |
| <<<<<<< HEAD | |
| # Current Version: Fast but less secure | |
| return user.is_authenticated | |
| ======= | |
| # Incoming Version: Secure version using MFA check | |
| if not user.is_authenticated: | |
| return False | |
| return user.has_mfa_enabled() | |
| >>>>>>> feature/mfa-upgrade |