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 @@