Commit 6c7f04b1 authored by Nicolas Wavrant's avatar Nicolas Wavrant

runner: strip rcode while reading in file

parent 47f31cb2
......@@ -590,7 +590,7 @@ def configAccount():
account.append(request.form['name'].strip())
code = request.form['rcode'].strip()
recovery_code = open(os.path.join(app.config['etc_dir'], ".rcode"),
"r").read()
"r").read().strip()
if code != recovery_code:
return jsonify(code=0, result="Your password recovery code is not valid!")
result = saveSession(app.config, account)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment