Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect query #50

Open
AlaaTaima opened this issue Mar 4, 2020 · 0 comments
Open

Incorrect query #50

AlaaTaima opened this issue Mar 4, 2020 · 0 comments
Labels

Comments

@AlaaTaima
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant