diff --git a/App/Auth/auth.py b/App/Auth/auth.py index d7415b5..01bc734 100644 --- a/App/Auth/auth.py +++ b/App/Auth/auth.py @@ -27,4 +27,4 @@ def auth(): }) return redirect(url_for('index')) else: - return auth_data.error_message + return render_template('error.html', error_message=auth_data.error_message) diff --git a/App/Auth/auth_route.py b/App/Auth/auth_route.py index 4472666..3781ee1 100644 --- a/App/Auth/auth_route.py +++ b/App/Auth/auth_route.py @@ -11,5 +11,5 @@ def route(db_config, input_data, sql_provider, name) -> InfoRespronse: print("sql = ", _sql) result = select_list(db_config, _sql) if result is None: - return InfoRespronse(result, error_message = 'Ошибка на этапе авторизации', status=False) + 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/error.html b/App/Auth/templates/error.html new file mode 100644 index 0000000..553b510 --- /dev/null +++ b/App/Auth/templates/error.html @@ -0,0 +1,12 @@ + + +
+ +{{ error_message }}
+ + +