reuse Database classes
This commit is contained in:
@@ -31,21 +31,25 @@ class UserManager(QObject):
|
||||
def __hashPassword(self):
|
||||
self.__password = Vermasseln.userPasswordHash(self.__password)
|
||||
|
||||
def checkAdmin(self):
|
||||
self.__cur.callproc("checkAdmin")
|
||||
result = self.__cur.fetchall()
|
||||
return result
|
||||
|
||||
def getUser(self):
|
||||
self.__closeConnection()
|
||||
pass
|
||||
|
||||
def getUsers(self):
|
||||
self.__closeConnection()
|
||||
pass
|
||||
|
||||
def delUser(self):
|
||||
self.__closeConnection()
|
||||
pass
|
||||
|
||||
def updateUser(self):
|
||||
self.__closeConnection()
|
||||
pass
|
||||
|
||||
def disableUser(self):
|
||||
self.__closeConnection()
|
||||
pass
|
||||
|
||||
@Slot(str, str)
|
||||
def login(self, username, password):
|
||||
@@ -67,3 +71,5 @@ class UserManager(QObject):
|
||||
if hash_password == hash_pw:
|
||||
self.loginOkay.emit()
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user