Exemple #1
0
    def change_password3():
        print()
        print("----------------------------------------------")
        print()

        # Update new password
        users.user_list[current_user] = change_pass
        users.update_list()

        print("Done! Now you need to restart this system to apply changes")
        print()

        input("Press Enter to continue... ")
        clear()
        exit()
Exemple #2
0
    def create_user():
        print()
        print("----------------------------------------------")

        users.user_list[new_username] = new_password
        users.users.append(new_username)
        users.update_list()

        print()
        print("Done! Now you need to restart this system to apply changes")
        print()

        input("Press Enter to continue... ")
        clear()
        exit()
Exemple #3
0
    def delete_user():
        print()
        print("----------------------------------------------")

        del users.user_list[choose_user]
        users.users.remove(choose_user)
        users.update_list()

        print()
        print("Done! Now you need to restart this system to apply changes")
        print()

        input("Press Enter to continue... ")
        clear()
        exit()
Exemple #4
0
    def change_username3():
        print()
        print("----------------------------------------------")
        print()

        # Update new name
        users.user_list[change_name] = users.user_list[current_user]
        del users.user_list[current_user]

        users.users.remove(current_user)
        users.users.append(change_name)

        users.update_list()

        print("Done! Now you need to restart this system to apply changes")
        print()

        input("Press Enter to continue... ")
        clear()
        exit()