This commit is contained in:
AJ
2024-06-23 18:15:36 +02:00
parent 63249f7110
commit ccee4c7df1
3 changed files with 6 additions and 4 deletions

View File

@@ -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;
} }

View File

@@ -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);
}; };

View File

@@ -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{