Can get current user ID

This commit is contained in:
Pierre HUBERT
2018-11-29 17:35:27 +01:00
parent 2396047204
commit d405b0e8e1
8 changed files with 193 additions and 24 deletions

View File

@ -2,7 +2,7 @@
#include "loginwidget.h"
#include "ui_loginwidget.h"
#include "mainwindow.h"
#include "../controllers/initcontroller.h"
#include "../utils/accountutils.h"
#include "../helpers/accounthelper.h"
@ -26,9 +26,8 @@ void LoginWidget::loginResult(LoginResult result)
if(result == LoginResult::LOGIN_SUCCESS){
qDebug("User successfully signed in.");
//Open the window
MainWindow *mainWindow = new MainWindow();
mainWindow->show();
//Restart application
(new InitController())->init();
close();
return;