Skip to content

Comment on SQLNet A social network that looks like Twitter but you write SQL to do anything

Comments

I suggest updating the login form's "query" to:

  SELECT token, user_id FROM users
  WHERE username = '____'
  AND password = HASH('____')
  -- Or maybe: AND password_verify(password, '____')
  LIMIT 1;
I assume you are already hashing passwords, but the current login form's 'UI query' is enough to raise questions

Sounds good. I'm currently offline, due to migration to a different env. But I'll add this.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.