WIP. User authentication on user interface

This commit is contained in:
emeric
2014-07-08 19:39:49 +02:00
parent 4744111959
commit 3e96534e08
17 changed files with 370 additions and 76 deletions
+29
View File
@@ -0,0 +1,29 @@
#include <Wt/Auth/AuthService>
#include <Wt/Auth/AbstractUserDatabase>
#include <Wt/Auth/Login>
#include <Wt/Auth/AuthWidget>
#include <Wt/WContainerWidget>
namespace UserInterface {
class LmsAuth : public Wt::Auth::AuthWidget
{
public:
LmsAuth(const Wt::Auth::AuthService &baseAuth,
Wt::Auth::AbstractUserDatabase &users,
Wt::Auth::Login &login,
Wt::WContainerWidget *parent=0)
: Wt::Auth::AuthWidget(baseAuth, users, login, parent) {}
// LoggedInView is delegated to LmsHome
void createLoggedInView () { hide();}
void createLoginView () { show(); Wt::Auth::AuthWidget::createLoginView();}
private:
};
} // namespace UserInterface