2 #ifndef __WTX_SYS_SESSION_H_234e0174_6b7d_11e8_b503_fb1ef3651ec0__ 3 #define __WTX_SYS_SESSION_H_234e0174_6b7d_11e8_b503_fb1ef3651ec0__ 5 #include <Wt/Auth/Login.h> 6 #include <Wt/Auth/Dbo/AuthInfo.h> 7 #include <Wt/Auth/Dbo/UserDatabase.h> 9 #include <Wtx/Sys/Auth/Auth.h> 10 #include <Wtx/Dbo/Session.h> 12 using UserDatabase = Wt::Auth::Dbo::UserDatabase<Wtx::Sys::Auth::AuthInfo>;
25 Wt::Auth::AbstractUserDatabase & users();
26 Wt::Auth::Login & login();
27 const Wt::Auth::Login & login()
const;
29 Wtx::Sys::User::Item::Ptr user()
const;
30 Wtx::Sys::User::Item::Ptr user(
const Wt::Auth::User & authUser );
34 std::unique_ptr<UserDatabase> m_users;
35 Wt::Auth::Login m_login;