You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the user instance was created without hashing the password, so when login by the credentials we see No active account found with the given credentials because the system does compare the actual password string with the hashed password which will return a False
Solution
Hashed the user password before saving it
Changes
Imported and used the make_password function to hash the user password
Added a condition to validate the password length before hashing it
The text was updated successfully, but these errors were encountered:
Description
the user instance was created without hashing the password, so when login by the credentials we see
No active account found with the given credentials
because the system does compare the actual password string with the hashed password which will return a FalseSolution
Hashed the user password before saving it
Changes
make_password
function to hash the user passwordThe text was updated successfully, but these errors were encountered: