Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CheckUsername=UserName_Entry.get()
- CheckPassword=Password_Entry.get()
- cursor.execute('''SELECT password FROM users WHERE username = ?''', (CheckUsername,))
- Login = cursor.fetchone()
- print (Login) # testing to see if it works
- if CheckPassword == True:
- print (" One of the accounts have successfully logged in ")
- Login.config(text=" You have logged in! ", fg="black", highlightthickness=1)
- else:
- Login.config(text=" Invalid username or Password! ", fg="black", highlightthickness=1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement