protocol auth fixed
This commit is contained in:
parent
4947a95899
commit
810260b05a
6 changed files with 60 additions and 31 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: sben-tay <sben-tay@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/05/20 21:57:49 by rparodi #+# #+# */
|
||||
/* Updated: 2025/06/08 21:59:53 by sben-tay ### ########.fr */
|
||||
/* Updated: 2025/06/16 18:36:01 by sben-tay ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -26,7 +26,9 @@ class User
|
|||
std::string _username;
|
||||
bool _hasNick;
|
||||
bool _hasUser;
|
||||
bool _hasPass; // to check if the user has sent a PASS command
|
||||
bool _hasPass;
|
||||
bool _passReceived;
|
||||
bool _passIsValid;
|
||||
|
||||
public:
|
||||
User(short unsigned fd);
|
||||
|
|
@ -46,6 +48,8 @@ class User
|
|||
void setHasNick(bool value);
|
||||
void setHasUser(bool value);
|
||||
void setHasPass(bool value);
|
||||
void setPassReceived(bool value);
|
||||
void setPassIsValid(bool value);
|
||||
bool getHasPass() const;
|
||||
std::string getNickname() const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue