Advertisement
Guest User

Untitled

a guest
Apr 11th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. CheckUsername=UserName_Entry.get()
  2. CheckPassword=Password_Entry.get()
  3. cursor.execute('''SELECT password FROM users WHERE username = ?''', (CheckUsername,))
  4. Login = cursor.fetchone()
  5. print (Login) # testing to see if it works
  6. if CheckPassword == True:
  7. print (" One of the accounts have successfully logged in ")
  8. Login.config(text=" You have logged in! ", fg="black", highlightthickness=1)
  9. else:
  10. Login.config(text=" Invalid username or Password! ", fg="black", highlightthickness=1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement