Squashed commit of the following:
commit 997c1138f549766d797f1ba6da26e1e8394387e2 Author: emeric <itmfr@yahoo.fr> Date: Sat Jan 10 17:50:20 2015 +0100 Implemented save, load and delete playlists commit bee08a16b544bb21785c45f083ab7c10e65bfa6e Author: emeric <itmfr@yahoo.fr> Date: Thu Jan 8 23:46:43 2015 +0100 Reworked the database code layout in order to add playlists
This commit is contained in:
@@ -28,11 +28,11 @@
|
||||
#include <Wt/Auth/Login>
|
||||
#include <Wt/Auth/PasswordService>
|
||||
|
||||
#include "User.hpp"
|
||||
#include "Types.hpp"
|
||||
|
||||
namespace Database {
|
||||
|
||||
typedef Wt::Auth::Dbo::UserDatabase<AuthInfo> UserDatabase;
|
||||
typedef Wt::Auth::Dbo::UserDatabase<AuthInfo> UserDatabase;
|
||||
|
||||
// Session living class handling the database and the login
|
||||
class Handler
|
||||
@@ -44,8 +44,8 @@ class Handler
|
||||
|
||||
Wt::Dbo::Session& getSession() { return _session; }
|
||||
|
||||
User::pointer getCurrentUser(); // get the current user, may return empty
|
||||
User::pointer getUser(const Wt::Auth::User& authUser); // Get or create the given user
|
||||
Wt::Dbo::ptr<User> getCurrentUser(); // get the current user, may return empty
|
||||
Wt::Dbo::ptr<User> getUser(const Wt::Auth::User& authUser); // Get or create the given user
|
||||
|
||||
Wt::Auth::AbstractUserDatabase& getUserDatabase();
|
||||
Wt::Auth::Login& getLogin() { return _login; }
|
||||
|
||||
Reference in New Issue
Block a user