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

This commit is contained in:
2026-05-21 13:07:58 +05:30
3 changed files with 25 additions and 0 deletions
@@ -1,3 +1,4 @@
#include <stdexcept>
#include "AuthenticationManagementService.h"
#include "User.h"
@@ -32,3 +33,12 @@ void AuthenticationManagementService::logout()
{
m_authenticatedUser = nullptr;
}
void AuthenticationManagementService::changePassword(const std::string& newPassword)
{
if (m_authenticatedUser == nullptr)
{
throw std::runtime_error("There is no user currently logged in!");
}
m_authenticatedUser->setPassword(newPassword);
}