27 lines
751 B
C++
27 lines
751 B
C++
/*
|
|
File: AuthenticationManagementService.h
|
|
Description: Header file declaring the AuthenticationManagementService class, which manages
|
|
user authentication, login, logout, password changes, and retrieval of the
|
|
authenticated user.
|
|
Author: Trenser
|
|
Date:19-May-2026
|
|
*/
|
|
#pragma once
|
|
#include <string>
|
|
#include "DataStore.h"
|
|
|
|
class User;
|
|
|
|
class AuthenticationManagementService
|
|
{
|
|
private:
|
|
static User* m_authenticatedUser;
|
|
DataStore& m_dataStore;
|
|
public:
|
|
AuthenticationManagementService() : m_dataStore(DataStore::getInstance()) {}
|
|
bool login(const std::string& username, const std::string& password);
|
|
void logout();
|
|
void changePassword(const std::string& newPassword);
|
|
User* getAuthenticatedUser();
|
|
};
|