Skip to content

Huge code error #14

@emanuelmustea

Description

@emanuelmustea

if ( user.password !== password ) {

On the line #34 compareSync function returns either true or false.
On the line #36 the returned value is compared with the user password wich doesn't makes any sense because the user password will never be true.
So instead of if ( user.password !== password ) { it's better to use if ( password) { to check if given password is correct or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions