WIP. Reorganizing things to get settings work. First attempt on Database settings
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
|
||||
#include "LmsAuth.hpp"
|
||||
|
||||
namespace UserInterface {
|
||||
|
||||
LmsAuth::LmsAuth(Database::Handler& db)
|
||||
: Wt::Auth::AuthWidget(db.getAuthService(),
|
||||
db.getUserDatabase(),
|
||||
db.getLogin())
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
LmsAuth::createLoggedInView()
|
||||
{
|
||||
hide();
|
||||
}
|
||||
|
||||
void
|
||||
LmsAuth::createLoginView()
|
||||
{
|
||||
show();
|
||||
Wt::Auth::AuthWidget::createLoginView();
|
||||
}
|
||||
|
||||
} // namespace UserInterface
|
||||
Reference in New Issue
Block a user