Verify email is not used already on signup
This commit is contained in:
parent
5bc8b1dc26
commit
9fdbef1b7d
4
app.py
4
app.py
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user