Исправление для корректной работы вёрстки

This commit is contained in:
Anton Kamalov
2024-10-24 00:26:16 +03:00
parent caa21d25ff
commit 1f28f55fd0
3 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ from functools import wraps
def check_auth(func):
@wraps(func)
def wrapper(*args, **kwargs):
if 'user_id' not in session:
if 'login' not in session:
return redirect(url_for('auth_bp.auth'))
return func(*args, **kwargs)
return wrapper