Store username in Session.
[dftpd.git] / Auth.hpp
blob90307f7d5ef5ca173ca72e0412deac57357ede43
1 #ifndef __DFTPD__AUTH_HPP__
2 #define __DFTPD__AUTH_HPP__
4 #include <string>
5 #include <boost/shared_ptr.hpp>
6 #include <boost/weak_ptr.hpp>
8 class Auth
10 public:
11 virtual ~Auth() {}
13 virtual bool Login( const std::string& login ) = 0;
14 virtual bool Password( const std::string& password ) = 0;
17 typedef boost::shared_ptr<Auth> AuthPtr;
18 typedef boost::weak_ptr<Auth> AuthWPtr;
20 #endif