diff --git a/guilib/login_controller.py b/guilib/login_controller.py index 60f3c73..4360cb5 100644 --- a/guilib/login_controller.py +++ b/guilib/login_controller.py @@ -2,6 +2,7 @@ from guilib.loginScreen import Ui_AuthenticationScreen from hivelibrary import database_tools +from hivelibrary import console_tools from PyQt5.QtWidgets import * import sqlite3 @@ -11,6 +12,9 @@ class LoginScreen(QWidget): def __init__(self, sqlite_cnn:sqlite3.Connection, sqlite_curosr:sqlite3.Cursor, targetWindow): super().__init__() + + console_tools.InformationPrinter("Starting login screen") + # set external varaibles self.db_connections = sqlite_cnn self.db_cursor = sqlite_curosr @@ -41,12 +45,14 @@ def tryAuthenticate(self): input_password = self.loginScreen.lineEdit_initralAuth_password.text() if self.CURRENT_TRY >= self.MAX_LOGIN_TRY: + console_tools.WarnPrinter("Maximum trial limit exceeded, exiting the program") self.exitProtocol() authenticateStatus = database_tools.is_authenticated(username=input_username,password=input_password,db_cursor=self.db_cursor) if authenticateStatus["success"] != True: + console_tools.ErrorPrinter("Wrong password or username") err_text = f"Status: Failed, {str(self.MAX_LOGIN_TRY - self.CURRENT_TRY)} credit left." self.loginScreen.label_4_authenticate_status.setText(err_text) self.loginScreen.lineEdit_initralAuth_username.clear() @@ -54,6 +60,7 @@ def tryAuthenticate(self): return else: + console_tools.InformationPrinter("Authentication successfully") self.hide() self.targetMainWindow.show() diff --git a/hivelibrary/banner.py b/hivelibrary/banner.py index 28a26c6..db689e6 100644 --- a/hivelibrary/banner.py +++ b/hivelibrary/banner.py @@ -1,10 +1,10 @@ BANNER_TEXT:str = """ - ____ _ ____ _ _ -| _ \ _ __(_)_ __ ___ ___ / ___| ___ ___ _ _ _ __(_) |_ _ _ -| |_) | '__| | '_ ` _ \ / _ \ \___ \ / _ \/ __| | | | '__| | __| | | | -| __/| | | | | | | | | __/ ___) | __/ (__| |_| | | | | |_| |_| | -|_| |_| |_|_| |_| |_|\___| |____/ \___|\___|\__,_|_| |_|\__|\__, | - |___/ + _____ _ _ _ _ ____ +|_ _| |__ ___| | | (_)_ _____ __ _|___ \ + | | | '_ \ / _ \ |_| | \ \ / / _ \ \ \ / / __) | + | | | | | | __/ _ | |\ V / __/ \ V / / __/ + |_| |_| |_|\___|_| |_|_| \_/ \___| \_/ |_____| + """ diff --git a/raw_ui_files/main_icon_files.qrc b/iconfiles/main_icon_files.qrc similarity index 100% rename from raw_ui_files/main_icon_files.qrc rename to iconfiles/main_icon_files.qrc diff --git a/main_icon_files_rc.py b/main_icon_files_rc.py index 5ed53b6..7941967 100644 --- a/main_icon_files_rc.py +++ b/main_icon_files_rc.py @@ -53764,7 +53764,7 @@ \x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\ \x00\x00\x00\x00\x00\x00\x00\x00\ \x00\x00\x00\x16\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\ -\x00\x00\x01\x8c\xf9\xf5\x7c\xc7\ +\x00\x00\x01\x8d\x1c\xb9\x18\x11\ " qt_version = [int(v) for v in QtCore.qVersion().split('.')] diff --git a/raw_ui_files/logo.png b/raw_ui_files/logo.png deleted file mode 100644 index d4fac0d..0000000 Binary files a/raw_ui_files/logo.png and /dev/null differ