Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I expect it to be like this:

    (SELECT
      ("id", "login", "first_name", "last_name")
      FROM (users)
      (WHERE
        (and
          (or
            (eq "login" login)
            (eq "email" email)
          )
          (eq "password" (bcrypt password))
        )
      )
    )
(Sorry, couldn't fit more parentheses in this)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: