Add registration dialog and bare-minimum auth
This commit is contained in:
parent
42bf5da2a3
commit
1e30ca20e7
13 changed files with 658 additions and 41 deletions
|
|
@ -2,20 +2,31 @@
|
|||
#define LOGINWINDOW_H
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QMessageBox>
|
||||
|
||||
#include "objects/user.h"
|
||||
#include "db/database.h"
|
||||
|
||||
#include "registrationdialog.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui { class LoginWindow; }
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class LoginWindow : public QMainWindow
|
||||
{
|
||||
class LoginWindow : public QMainWindow {
|
||||
private:
|
||||
Q_OBJECT
|
||||
|
||||
Ui::LoginWindow *ui;
|
||||
|
||||
void checkForFirstRun();
|
||||
void doLogin();
|
||||
|
||||
public:
|
||||
LoginWindow(QWidget *parent = nullptr);
|
||||
~LoginWindow();
|
||||
|
||||
private:
|
||||
Ui::LoginWindow *ui;
|
||||
public slots:
|
||||
void validateForm();
|
||||
};
|
||||
#endif // LOGINWINDOW_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue