Make password username lowercase

This commit is contained in:
amcmanu3 2022-09-04 13:33:22 -04:00
parent 5992aab250
commit a6148a7d8a

View File

@ -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: