Skip to content
Snippets Groups Projects
Commit 8a812d56 authored by Ferenc Schulcz's avatar Ferenc Schulcz
Browse files

Bugfix: correct parameters for error handler

parent a03a4ff1
Branches
No related tags found
No related merge requests found
......@@ -113,7 +113,7 @@ def minecraft_register(**kwargs):
if response != "":
db.mc_users.delete_one(
filter={'username': session['username'], 'mcuser': request.form['username']})
return rqtools.get_400("Unsuccessful operation. Maybe the password was too weak or it contained your username?")
return rqtools.get_400(None, errormsg="Unsuccessful operation. Maybe the password was too weak or it contained your username?")
db.sendMessage(session['username'], 'Successful registration.')
return rqtools.redirect(rqtools.url_for('service', servicename='minecraft'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment