Don't allow zero length form submissions
This commit is contained in:
parent
f776c7aa28
commit
d9973c3f29
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue