Merge branch 'feature-customer-management-cus002' into feature-customer-management

This commit is contained in:
2026-05-21 13:04:35 +05:30
3 changed files with 7 additions and 0 deletions
@@ -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)
@@ -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()