From 2764817294608f13c343738df981d91d7ed685f2 Mon Sep 17 00:00:00 2001 From: burzuf Date: Thu, 19 Mar 2020 20:41:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB=20=D0=BE?= =?UTF-8?q?=D1=82=D0=BB=D0=BE=D0=B2=20=D0=BF=D0=BE=D0=B2=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D0=BD=D0=BE=D0=B9=20=D1=80=D0=B5=D0=B3=D0=B8=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/__init__.py b/__init__.py index 90c6036..e498557 100644 --- a/__init__.py +++ b/__init__.py @@ -23,6 +23,8 @@ def index(): @app.route('/registration', methods=['GET', 'POST']) def registration(): + if current_user.is_authenticated: + return redirect(url_for('universal_error')) if request.method == 'POST': userName = request.form['RegUserLogin'] userPassw = request.form['RegUserPassw']