Merge branch 'feature-customer-management-cus002' into feature-customer-management
This commit is contained in:
@@ -7,6 +7,7 @@ bool Controller::login(const std::string& username, const std::string& password)
|
|||||||
|
|
||||||
void Controller::logout()
|
void Controller::logout()
|
||||||
{
|
{
|
||||||
|
m_authenticationManagementService.logout();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Controller::changePassword(const std::string& newPassword)
|
void Controller::changePassword(const std::string& newPassword)
|
||||||
|
|||||||
+5
@@ -27,3 +27,8 @@ User* AuthenticationManagementService::getAuthenticatedUser()
|
|||||||
{
|
{
|
||||||
return m_authenticatedUser;
|
return m_authenticatedUser;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AuthenticationManagementService::logout()
|
||||||
|
{
|
||||||
|
m_authenticatedUser = nullptr;
|
||||||
|
}
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ bool CustomerMenu::handleOperation(int choice)
|
|||||||
|
|
||||||
void CustomerMenu::logout()
|
void CustomerMenu::logout()
|
||||||
{
|
{
|
||||||
|
m_controller.logout();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CustomerMenu::changePassword()
|
void CustomerMenu::changePassword()
|
||||||
|
|||||||
Reference in New Issue
Block a user