Esempio n. 1
0
def login():
    account_number = view.account_number()
    pin = view.get_pin()
    the_acc = Account()
    the_acc.pin = pin
    the_acc.account_num = account_number

    if the_acc.validate() == True:
        the_acc.load(account_number)
        print(data[the_acc.account_num]["first Name"])
        # menu(the_acc)
    else:
        print("wrong pin")
        main_menu()