Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def btn_login_clicked(self):
- try:
- self.conn = pymssql.connect(host="DESKTOP-27N006P", user=self.auth.uiauth.line_login.text(),
- password=self.auth.uiauth.line_password.text(), database="Warehouses")
- self.conn.autocommit(True)
- if self.auth.uiauth.line_password.text() == "admin":
- self.fadmin = AdminForm(self.conn)
- self.auth.close()
- except pymssql.OperationalError:
- self.auth.uiauth.label_status.setText("Invalid login or password")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement