Создал отлов повторной регистрации

This commit is contained in:
2020-03-19 20:41:41 +03:00
parent d2d65e44a0
commit 2764817294

View File

@@ -23,6 +23,8 @@ def index():
@app.route('/registration', methods=['GET', 'POST']) @app.route('/registration', methods=['GET', 'POST'])
def registration(): def registration():
if current_user.is_authenticated:
return redirect(url_for('universal_error'))
if request.method == 'POST': if request.method == 'POST':
userName = request.form['RegUserLogin'] userName = request.form['RegUserLogin']
userPassw = request.form['RegUserPassw'] userPassw = request.form['RegUserPassw']