-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
| 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.