/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* pass.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: aortigos > args; if (client.isAuthenticated()) { // Still need to find what server should reply to different errors std::string res = "You are already authenticated"; send(client.getFd(), res.c_str(), res.size(), 0); return ; } if (this->password_ == args) client->authenticated = true; else { // Still need to find what server should reply to different errors std::string res = "Invalid password"; send(client.getFd(), res.c_str(), res.size(), 0); } }