Skip to content

Cannot login the recently created user due to No active account found with the given credentials #52

@Mahmoud-Emad

Description

@Mahmoud-Emad

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 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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions