mirror of
https://github.com/Llloooggg/Jarvis.git
synced 2026-03-06 03:56:23 +03:00
Создал отлов повторной регистрации
This commit is contained in:
@@ -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']
|
||||||
|
|||||||
Reference in New Issue
Block a user