Add changePassword method in controller and authenticated user accessor

<UserStory> AUTH004 : Change Password </UserStory>

    <Changes>
    - Added changePassword method in ZenvyController to move to AuthenticationManagementService
    - Declared changePassword in ZenvyController.h
    - Introduced getAuthenticatedUser() in DataStore for accessing authenticated employee
    - Updated DataStore.h with getAuthenticatedUser() method
    - Prepared AuthenticationManagementService.cpp for password change implementation
    </Changes>

    <Review>
    Smitha Mohan
    </Review>
This commit is contained in:
Ajmal Jalaludeen
2026-04-06 12:05:22 +05:30
committed by Joel Thomas
parent dc3a30c448
commit c2fbfa2d03
6 changed files with 25 additions and 2 deletions
@@ -2,6 +2,7 @@
#include <string>
#include <map>
#include <utility>
#include <stdexcept>
#include "DataStore.h"
#include "Enums.h"
@@ -13,6 +14,6 @@ public:
AuthenticationManagementService() : m_dataStore(DataStore::getInstance()) {};
std::tuple<Enums::LoginStatus, Enums::EmployeeType, Enums::EmployeeDesignation> login(const std::string& username, const std::string& password);
void logout();
void changePassword();
void changePassword(std::string);
};