PyQt and SQLite Login System | compare values | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

PyQt and SQLite Login System | compare values

Hello, Im working on a Login system with Python,PyQt and SQLite. My Question is, how do i compare the input values(username and password) with the rows in the Database? And how do i creat a row like that? Its my first time working with SQLite and Databases. Thank you!

11th Jun 2020, 8:42 PM
FlyiiingDani
FlyiiingDani - avatar
1 Answer
0
first you need to create a table with the correct columns(database schema), then insert rows with values, then run a query to get the password value using the user name as the key. then you compare the value retrived from pyqt ui with what you retrived from database. conplete a sql tutorial in sololearn, then find a sqlite python tutorial also do not ever store passwords in database, you only want to store salted and hashed passwords using at least sha256
4th Aug 2020, 10:31 PM
Dev Project
Dev Project - avatar