Missing check oauth

This commit is contained in:
2025-09-27 21:12:45 +02:00
parent 7a5e387665
commit 00b9c170f1
5 changed files with 29 additions and 16 deletions

View File

@@ -6,12 +6,9 @@ from flask_babel import gettext as _
try:
from routes.oauth import discord
except ImportError:
discord = None
pass
from routes.login import login_user
if discord is None:
abort("OAuth not configured. Please set up OAuth in routes/oauth.py")
discord_bp = Blueprint('discord', __name__)
@discord_bp.route('/login/discord')