Refactor authentication: replace tuple with DTO, namespace config
This commit is contained in:
@@ -65,7 +65,7 @@ void UserInterface::login()
|
||||
util::read(email);
|
||||
std::cout << "Enter password: ";
|
||||
util::read(password);
|
||||
AuthenticationContext authenticationContext = m_controller->login(email, password);
|
||||
AuthenticationDTO authenticationContext = m_controller->login(email, password);
|
||||
Enums::LoginStatus loginStatus = std::get<0>(authenticationContext);
|
||||
Enums::EmployeeType employeeType = std::get<1>(authenticationContext);
|
||||
Enums::EmployeeDesignation employeeDesignation = std::get<2>(authenticationContext);
|
||||
|
||||
Reference in New Issue
Block a user