X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/40079f3d50a559ea36705b72b2fe2d190a6cc354..27266b5280c04292ca621da13f36ba70cac403bb:/include/stg/user.h?ds=sidebyside diff --git a/include/stg/user.h b/include/stg/user.h index 0adb342a..1fa49201 100644 --- a/include/stg/user.h +++ b/include/stg/user.h @@ -74,11 +74,10 @@ public: virtual bool GetConnected() const = 0; virtual time_t GetConnectedModificationTime() const = 0; + virtual const std::string & GetLastDisconnectReason() const = 0; virtual int GetAuthorized() const = 0; - /*virtual int Authorize(uint32_t ip, - uint32_t enabledDirs, - const AUTH * auth) = 0; - virtual void Unauthorize(const AUTH * auth) = 0;*/ + virtual time_t GetAuthorizedModificationTime() const = 0; + virtual bool IsAuthorizedBy(const AUTH * auth) const = 0; virtual std::vector GetAuthorizers() const = 0;