Dont show SQLa error on user reg

update-readme
Sander Ferdinand 6 years ago
parent 35fa3f51c6
commit 3c9c242f60

@ -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'))

Loading…
Cancel
Save