mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Make password username lowercase
This commit is contained in:
parent
5992aab250
commit
a6148a7d8a
@ -60,7 +60,7 @@ class MainPrompt(cmd.Cmd):
|
||||
def do_set_passwd(self, line):
|
||||
|
||||
try:
|
||||
username = line
|
||||
username = str(line).lower()
|
||||
# If no user is found it returns None
|
||||
user_id = self.controller.users.get_id_by_name(username)
|
||||
if not username:
|
||||
|
Loading…
Reference in New Issue
Block a user