In data, coming from data = cursor.fetchone(), I have (id, 'user', 'email', 'pbkdf2:sha256:50000$') [A user from the db].
How can I do to get the crypted password? I want to compare it with the entered password and do the login.
I tryed password = data['user_password'], but when I ckeck with app.logger.info(password) it shows me nothing.
'user_password' is the column from my database. This is why I did data['user_password']. Is this wrong?
Help me please! Thank you!
<input type="password" name="inputPassword" id="inputPassword" class="form-control" placeholder="Password" required>should not you be usingdata['inputPassword']?