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