Skip to content

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

@AhmadShallal

Description

@AhmadShallal

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions