mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Add explaination to password fail.
This commit is contained in:
parent
e12814d0b0
commit
49965bf31f
@ -68,11 +68,11 @@ class MainPrompt(cmd.Cmd):
|
||||
return False
|
||||
|
||||
if len(new_pass) > 512:
|
||||
Console.warning("Password Too Long")
|
||||
Console.warning("Passwords must be greater than 6char long and under 512")
|
||||
return False
|
||||
|
||||
if len(new_pass) < 6:
|
||||
Console.warning("Password Too Short")
|
||||
Console.warning("Passwords must be greater than 6char long and under 512")
|
||||
return False
|
||||
self.controller.users.update_user(user_id, {"password": new_pass})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user