Update
This commit is contained in:
@@ -5,9 +5,10 @@ LoginFrameController::LoginFrameController()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LoginFrameController::tryLogin(std::string id, std::string password){
|
bool LoginFrameController::tryLogin(QString id, QString password){
|
||||||
//DatabaseHandler dbHandler = new Databasehandler();
|
//DatabaseHandler dbHandler = new Databasehandler();
|
||||||
//dbHandler.CheckValidLogin();
|
//dbHandler.CheckValidLogin();
|
||||||
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <QString>
|
||||||
|
|
||||||
class LoginFrameController{
|
class LoginFrameController{
|
||||||
private:
|
private:
|
||||||
public:
|
public:
|
||||||
LoginFrameController();
|
LoginFrameController();
|
||||||
bool tryLogin(std::string id, std::string password);
|
bool tryLogin(QString id, QString password);
|
||||||
};
|
};
|
||||||
@@ -114,7 +114,7 @@ void LoginFrame::loginButtonClicked(){
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
LoginFrameController* controller = new LoginFrameController();
|
LoginFrameController* controller = new LoginFrameController();
|
||||||
if (!controller->tryLogin(id.toStdString(), password.toStdString())){
|
if (!controller->tryLogin(id, password)){
|
||||||
QMessageBox:: warning(this, "Error", "ID und Passwort stimmen nicht überein!");
|
QMessageBox:: warning(this, "Error", "ID und Passwort stimmen nicht überein!");
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|||||||
Reference in New Issue
Block a user