Pass len check fix.

This commit is contained in:
msinkec 2021-12-26 17:55:12 +01:00
parent 13a5fdd6f7
commit 743ebba052

2
app.py
View File

@ -204,7 +204,7 @@ def solar_register_post():
if not password:
flash('Prazno polje za geslo.')
return redirect('/register')
if len(password) > 8:
if len(password) < 8:
flash('Geslo mora biti vsaj 8 znakov dolgo.')
return redirect('/register')
if len(password) > 100: