Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def Is_Valid():
- UsernameValidity=UserName_Entry.get()
- PasswordValidity=Password_Entry.get()
- cursor.execute('SELECT 1 FROM users WHERE username = ? AND password = ?',[UsernameValidity, PasswordValidity])
- LogInAttempt = cursor.fetchone()
- print (Is_Valid) # Testing to see if it works on shell
- if LogInAttempt:
- print (" One of the accounts have successfully logged in ")
- IsValidText.config(text=" You have logged in! ", fg="black", highlightthickness=1)
- myGUI.after(1000, CoreContent)
- else:
- print (" One of the accounts inputted the wrong credentials! ")
- IsValidText.config(text=" Invalid username or Password! ", fg="black", highlightthickness=1)
Add Comment
Please, Sign In to add comment