Pass len check fix.
This commit is contained in:
parent
13a5fdd6f7
commit
743ebba052
2
app.py
2
app.py
|
@ -204,7 +204,7 @@ def solar_register_post():
|
||||||
if not password:
|
if not password:
|
||||||
flash('Prazno polje za geslo.')
|
flash('Prazno polje za geslo.')
|
||||||
return redirect('/register')
|
return redirect('/register')
|
||||||
if len(password) > 8:
|
if len(password) < 8:
|
||||||
flash('Geslo mora biti vsaj 8 znakov dolgo.')
|
flash('Geslo mora biti vsaj 8 znakov dolgo.')
|
||||||
return redirect('/register')
|
return redirect('/register')
|
||||||
if len(password) > 100:
|
if len(password) > 100:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user