Исправлена ошибка изменения почты

This commit is contained in:
Andrei 2022-08-12 13:53:23 +05:00
parent f07c0977f7
commit ca2b476232
3 changed files with 7 additions and 3 deletions

View File

@ -199,6 +199,10 @@ def edit_profile(logins):
return render_template('edit_profile.html', title='Редактирование профиля', form=form,
ph_f=ph_f,
message="Такая почта уже есть")
else:
help_arg = True
help_arg_2 = form.email.data
return redirect('/confirmation')
user.name = form.name.data
user.surname = form.surname.data
user.age = form.age.data

View File

@ -1,5 +1,6 @@
SQLAlchemy~=1.4.34
Werkzeug~=2.1.1
Werkzeug~=2.0.0
WTForms~=3.0.1
waitress~=2.1.1
Flask~=2.1.1
Flask~=2.1.1
Pillow~=8.4.0

View File

@ -3,7 +3,6 @@
{% extends "base.html" %}
{% block content %}
<div class="divlog">
<h1 class="title">Подтверждение почты</h1>
<form action="" method="post">
{{ form.hidden_tag() }}