Исправлена ошибка изменения почты
This commit is contained in:
parent
f07c0977f7
commit
ca2b476232
4
main.py
4
main.py
@ -199,6 +199,10 @@ def edit_profile(logins):
|
|||||||
return render_template('edit_profile.html', title='Редактирование профиля', form=form,
|
return render_template('edit_profile.html', title='Редактирование профиля', form=form,
|
||||||
ph_f=ph_f,
|
ph_f=ph_f,
|
||||||
message="Такая почта уже есть")
|
message="Такая почта уже есть")
|
||||||
|
else:
|
||||||
|
help_arg = True
|
||||||
|
help_arg_2 = form.email.data
|
||||||
|
return redirect('/confirmation')
|
||||||
user.name = form.name.data
|
user.name = form.name.data
|
||||||
user.surname = form.surname.data
|
user.surname = form.surname.data
|
||||||
user.age = form.age.data
|
user.age = form.age.data
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
SQLAlchemy~=1.4.34
|
SQLAlchemy~=1.4.34
|
||||||
Werkzeug~=2.1.1
|
Werkzeug~=2.0.0
|
||||||
WTForms~=3.0.1
|
WTForms~=3.0.1
|
||||||
waitress~=2.1.1
|
waitress~=2.1.1
|
||||||
Flask~=2.1.1
|
Flask~=2.1.1
|
||||||
|
Pillow~=8.4.0
|
||||||
@ -3,7 +3,6 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="divlog">
|
<div class="divlog">
|
||||||
|
|
||||||
<h1 class="title">Подтверждение почты</h1>
|
<h1 class="title">Подтверждение почты</h1>
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
{{ form.hidden_tag() }}
|
{{ form.hidden_tag() }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user