Commit ba8a0b63 authored by Vladislav Rykov's avatar Vladislav Rykov
Browse files

bug fixes

parent 907ac1f3
......@@ -42,9 +42,9 @@ def signup():
if (username == '' or password == ''):
feedback = 'Username or password fields cannot be empty'
return render_template('public/signup.html', feedback=feedback)
#elif (len(password) < 8):
# flash('Password length must be at least 8 characters.', 'danger')
# return redirect(request.url)
elif (len(password) < 8):
flash('Password length must be at least 8 characters.', 'danger')
return redirect(request.url)
else:
res = ud.create(username, password, 'user')
if (not res[0]):
......
Supports Markdown
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