Makespace/equipment-db — pull request #5 by rjw57 (2012-10-15 17:12:37+00:00)
Title: User model

Add a basic user model to the database. A user has a name and email address, can be active or inactive (i.e. 'deleted') and can be authenticated by a secure password hash.

A wrinkle on the authentication is to allow a user to be created *without* specifying a password. In this case the 'password' is a securely generated string of 32 random bytes (==256 bits). This is to allow some users to sign up and authenticate by other means, e.g. OpenID.