Dont show SQLa error on user reg

This commit is contained in:
Sander Ferdinand 2018-07-12 02:46:58 +02:00
parent 35fa3f51c6
commit 3c9c242f60
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ def register():
flash('Successfully registered. No confirmation email required. You can login!')
return redirect(url_for('login'))
except Exception as ex:
flash('Could not register user: %s' % str(ex), 'error')
flash('Could not register user. Probably a duplicate username or email that already exists.', 'error')
return make_response(render_template('register.html'))