Stupid winsock needs special way to close sockets.
[dftpd.git] / AuthToken.hpp
blob5cccedbd75fc2b67c6aee1aaeb57da94cca8569d
1 #ifndef __DFTPD__AUTHTOKEN_HPP__
2 #define __DFTPD__AUTHTOKEN_HPP__
4 #include "Auth.hpp"
6 class AuthToken : public Auth
8 public:
9 AuthToken();
11 bool Login( const std::string& login );
12 bool Password( const std::string& login, const std::string& password );
13 std::string GetRoot( const std::string& login );
15 const std::string& GetToken() const { return m_token; }
17 void GenerateToken();
19 private:
20 std::string m_token;
22 bool TokenExists();
25 #endif