Verify email is not used already on signup

This commit is contained in:
Verox001 2024-03-05 09:43:13 +01:00
parent 5bc8b1dc26
commit 9fdbef1b7d

4
app.py
View File

@ -93,6 +93,10 @@ def signup_post():
if not password:
errors['password'] = 'Das Passwort ist erforderlich.'
# Check if email is already in use
if User.get_by_email(email):
errors['email'] = 'E-Mail Adresse bereits in Benutzung.'
if errors:
return render_template(
'auth/signup.html',