From e7b46d178af0c6a9e7d0ea6f06bd50214f912893 Mon Sep 17 00:00:00 2001 From: Anton Kamalov Date: Tue, 22 Oct 2024 22:41:21 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0=20?= =?UTF-8?q?=D1=81=20=D0=B2=D1=8B=D0=BB=D0=B5=D1=82=D0=BE=D0=BC=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=20=D0=BD=D0=B5=D0=B7=D0=B0=D0=BF=D0=BE=D0=BB=D0=BD?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B8=20=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D1=85?= =?UTF-8?q?=20=D0=B0=D0=B2=D1=82=D0=BE=D1=80=D0=B8=D0=B7=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App/Auth/auth_route.py | 2 +- App/Auth/templates/auth.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/App/Auth/auth_route.py b/App/Auth/auth_route.py index 3781ee1..8b77d0c 100644 --- a/App/Auth/auth_route.py +++ b/App/Auth/auth_route.py @@ -10,6 +10,6 @@ def route(db_config, input_data, sql_provider, name) -> InfoRespronse: _sql = sql_provider.get(name, input_data) print("sql = ", _sql) result = select_list(db_config, _sql) - if result is None: + if result is None or len(result) == 0: return InfoRespronse(result, error_message = 'Произошла ошибка на этапе авторизации :(', status=False) return InfoRespronse(result, error_message='', status=True) \ No newline at end of file diff --git a/App/Auth/templates/auth.html b/App/Auth/templates/auth.html index 595a817..7d155f8 100644 --- a/App/Auth/templates/auth.html +++ b/App/Auth/templates/auth.html @@ -7,9 +7,9 @@
-
+
-
+