#ifndef ____ADMIN_PASSWORD_h__ # define ____ADMIN_PASSWORD_h__ # include "Command.h" # include "MailFileSystem.h" namespace mail { /// /// Admin console command: "password reset user@domain newpassword" - /// see MailFileSystem::setPassword(). A separate top-level command /// (rather than a verb under "mailbox") since resetting a user's /// password was called out as its own explicit requirement, and /// keeping it separate leaves room for other account-level /// configuration commands later without reworking mailbox add/remove. /// class __ADMIN_PASSWORD : public core::Command { public: __ADMIN_PASSWORD(MailFileSystem &mailFileSystem); int processCommand(coreutils::ZString &request, core::TCPSession &session) override; private: MailFileSystem &mailFileSystem; }; } #endif