Dec-14-2023, 07:56 PM
BSLoginDialog connects db_manager when created. on_login_clicked() closes db_manager. If you call on_login_clicked() a second time there is no connection and the query fails.
You could modify your code to only close the connection when the dialog is closed, but I think a better solution is to connect and close the connection each time you want to check user credentials.
You could modify your code to only close the connection when the dialog is closed, but I think a better solution is to connect and close the connection each time you want to check user credentials.