Mar 22 2012

A better way to authenticate users via a SQL database.

Jamie Begin

For years I’ve been using this simple design pattern when building a new user authentication backend for a project. Rather than just querying whether a username and password is valid, I perform a conditional INSERT on a login history table. It’s a pretty obvious idea, but not one that I’ve personally encountered in other developer …

Read more