Website Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
2 files changed, 2 insertions, 1 deletions
-rw-r--r--src/EventSystem/Event.cpp2
-rw-r--r--src/VenueConsoleUI.cpp1
diff --git a/src/EventSystem/Event.cpp b/src/EventSystem/Event.cpp
index 8d01fbe..f6c63a1 100644
--- a/src/EventSystem/Event.cpp
+++ b/src/EventSystem/Event.cpp
@@ -55,7 +55,7 @@ StatusCode Event::buyTicketFromReservation(const Reservation& reservation, const
unsigned resInd = reservations.findIndex(reservation);
if (resInd == reservations.get_count()) return E_ReservationDoesNotExist;
- if (!reservation.validPassword(password)) return E_WrongReservationPassword;
+ if (!reservations[resInd].validPassword(password)) return E_WrongReservationPassword;
reservations.removeAt(resInd);
tickets.insert(reservation.get_ticket());
diff --git a/src/VenueConsoleUI.cpp b/src/VenueConsoleUI.cpp
index 617d8f9..6074902 100644
--- a/src/VenueConsoleUI.cpp
+++ b/src/VenueConsoleUI.cpp
@@ -80,6 +80,7 @@ void command_buyTicket() {
if (reserved) {
char pass[PASSWORD_LEN];
inputLineBox("Enter reservation password: ", pass, PASSWORD_LEN);
+ std::cout << "Saved- " << pass << std::endl;
handleStatusCode(v->get_es().buyTicket(name, date, tic, pass), ticketManagementMenu);
}
else