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

@@ -1,8 +1,8 @@
#include "Client.hpp"
Client::Client() : _isRegistered(false) {}
Client::Client() {}
Client::Client(int fd) : _fd(fd) {}
Client::Client(int fd) : _fd(fd), _authentication(0) {}
Client::~Client() {}
@@ -41,4 +41,12 @@ std::string Client::getUser() const {
void Client::setUser(const std::string& newUser) {
user = newUser;
}
}
int Client::getAuthentication() const {
return _authentication;
}
void Client::setAuthentication(int auth) {
_authentication = auth;
}