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

hi I found why I get wrong email or password error #8

Open
AhmadShallal opened this issue Oct 2, 2019 · 2 comments
Open

hi I found why I get wrong email or password error #8

AhmadShallal opened this issue Oct 2, 2019 · 2 comments

Comments

@AhmadShallal
Copy link

hi
amazing project , helped me a lot and works easily
I got response 401 wrong email or password
it was because syntax mistake at line 30 of server.js

// Check if the user exists in database
function isAuthenticated({ email, password }) {
------>>>> // return userdb.users.findIndex(user => user.email === email && user.password === password) !== -1 <<<<-------
return userdb.users.findIndex(user => (user.email === email && user.password === password) !== -1)
}

just brackets

@Marzeu
Copy link

Marzeu commented Oct 2, 2020

Yes, work now for new users.

@kantha88
Copy link

Thank you AhmadShallal, it helped save a lot of time for the beginners. I hope the git owner will make the updates

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

No branches or pull requests

3 participants