Older/WebApplication/Session.h
luocai a9640bbda5
All checks were successful
Deploy Docker Images / Build dockerfile and Server deploy (push) Successful in 17s
Deploy / Build (push) Successful in 3m11s
remove blog example source.
2024-11-11 19:21:48 +08:00

22 lines
472 B
C++

#ifndef __SESSION_H__
#define __SESSION_H__
#include "User.h"
#include <Wt/Auth/Login.h>
#include <Wt/Dbo/Session.h>
using UserDatabase = Wt::Auth::Dbo::UserDatabase<AuthInfo>;
class Session : public Wt::Dbo::Session {
public:
Session(const std::string &sqliteDb);
~Session();
Wt::Auth::AbstractUserDatabase &users();
Wt::Auth::Login &login();
private:
std::unique_ptr<UserDatabase> m_users;
Wt::Auth::Login m_login;
};
#endif // __SESSION_H__