cmd[2], lastconf[6]) print("Total characters changed to " + cmd[2]) elif cmd[1] == "repeat": if cmd[2] == "y": recomendation.repeat = True print("Allowed to repeat password") elif cmd[2] == "n": recomendation.repeat = False print("Not allowed to repeat password") else: print("Error: Unknown command.") continue else: print("Error: Unknown command.") elif cmd[0] == "add": user = shadow.add_password(cmd[1], cmd[2]) if user: db.add_password(user[0], user[1], user[2]) shadow.save() print("Password added succesful") elif cmd[0] == "remove": if shadow.remove_password(cmd[1]): db.add_password(cmd[1], "null", "null") shadow.save() print("Password removed succesful") elif cmd[0] == "lock": if shadow.lock(cmd[1]): password = db.get_password(cmd[1]) if len(password) == 0: db.add_password(cmd[1], "null", "null", "Locked") else: