WIP. Reorganizing things to get settings work. First attempt on Database settings

This commit is contained in:
emeric
2014-07-22 12:57:29 +02:00
parent f1cea2404e
commit 938e96cc40
32 changed files with 752 additions and 96 deletions
+3 -5
View File
@@ -1,5 +1,5 @@
#include <Wt/WBootstrapTheme>
#include "LmsAuth.hpp"
#include "auth/LmsAuth.hpp"
#include "LmsHome.hpp"
#include "LmsApplication.hpp"
@@ -35,12 +35,10 @@ LmsApplication::LmsApplication(const Wt::WEnvironment& env, boost::filesystem::p
_sessionData.getDatabaseHandler().getLogin().changed().connect(this, &LmsApplication::handleAuthEvent);
LmsAuth *authWidget = new LmsAuth(Database::Handler::getAuthService(),
_sessionData.getDatabaseHandler().getUserDatabase(),
_sessionData.getDatabaseHandler().getLogin());
LmsAuth *authWidget = new LmsAuth(_sessionData.getDatabaseHandler());
authWidget->model()->addPasswordAuth(&Database::Handler::getPasswordService());
authWidget->setRegistrationEnabled(true);
authWidget->setRegistrationEnabled(false);
authWidget->processEnvironment();