Add files via upload

This commit is contained in:
Chris-bot374
2024-06-30 20:30:54 +02:00
committed by GitHub
parent 5f4c6ba3b0
commit 5d161c7443
7 changed files with 235 additions and 0 deletions

18
DBHandler/DBLogin.hpp Normal file
View File

@@ -0,0 +1,18 @@
#ifndef _DBLOGIN_HPP_
#define _DBLOGIN_HPP_
#include "DBHandler.hpp"
class DBLogin : public DBHandler {
public:
DBLogin(std::string connStr);
/*
return 1 if admin | 0 if not admin | -1 if failed
*/
int checkValidLogin(int id, std::string pw);
};
#endif