1
0
mirror of https://github.com/quay/quay.git synced 2025-04-18 10:44:06 +03:00
quay/secscan.py
Kenny Lee Sin Cheong a839a78eb5
chore: allows Quay to run for account recoveries (PROJQUAY-970) (#793)
Adds ACCOUNT_RECOVERY_MODE to allow Quay to run with some core
features disabled. When this is set, the instance should only be used
in order by existing users who hasn't linked their account to an
external login service, after database authentication has been
disabled.
2021-07-07 12:45:24 -04:00

6 lines
204 B
Python

from app import app as application
from endpoints.secscan import secscan
if not application.config.get("ACCOUNT_RECOVERY_MODE", False):
application.register_blueprint(secscan, url_prefix="/secscan")