Don't allow zero length form submissions

This commit is contained in:
James W Thorne 2017-01-11 21:42:35 -06:00
parent f776c7aa28
commit d9973c3f29

View file

@ -74,6 +74,9 @@ def clean_input():
if 'password' not in request.form: if 'password' not in request.form:
abort(400) abort(400)
if not len(request.form['password']) > 0:
abort(400)
if 'ttl' not in request.form: if 'ttl' not in request.form:
abort(400) abort(400)