Updated from git comments. Return status code 400 for duplicate

email address.
This commit is contained in:
Adam Shimali
2016-03-09 15:46:45 +00:00
parent 33c92a4e29
commit 0095e4b608
2 changed files with 2 additions and 1 deletions

View File

@@ -35,6 +35,7 @@ def register():
return redirect(url_for('main.verify'))
else:
flash('There was an error registering your account')
return render_template('views/register.html', form=form), 400
return render_template('views/register.html', form=form)