- virtual int Add(const std::string & login, const ADMIN * admin) = 0;
- virtual void Del(const std::string & login, const ADMIN * admin) = 0;
+ virtual bool Authorize(const std::string& login, uint32_t ip,
+ uint32_t enabledDirs, const Auth* auth) = 0;
+ virtual bool Unauthorize(const std::string& login,
+ const Auth* auth,
+ const std::string& reason = {}) = 0;