Skip to content

Incorrect query #50

@AlaaTaima

Description

@AlaaTaima

const getUser = (value) => connection.query('select * from users where email = $1 and password = $2', [value.email, value.password]);

I see that you used this query to sign in, but this is incorrect.
Your log in query should check to return the user data that matches the entered email only.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions