Exemplo n.º 1
0
def changePasswordFunction(username, accountList):
    i = findAccount(username, accountList)
    if i != -1:
        account = accountList[i]
        input = raw_input("Enter the old password: "******"Verify the old password is correct")
            return
        input = raw_input("Enter the new password: "******"Confirm the new password: "******"The passwords must match!")
        Account.changePassword(account, newPassword)
        print("Password changed sucessfully!")