fixed client authentication bugs

This commit is contained in:
Bettercallous
2024-04-27 21:51:21 +01:00
parent f01089a434
commit 5338af5e4f
6 changed files with 36 additions and 26 deletions

View File

@@ -10,7 +10,7 @@ class Client {
std::string name;
std::string nick;
std::string user;
bool _isRegistered;
int _authentication;
public:
Client();
Client(int fd);
@@ -30,6 +30,9 @@ class Client {
// Getter and setter for user
std::string getUser() const;
void setUser(const std::string& newUser);
int getAuthentication() const;
void setAuthentication(int auth);
};