Makespace/equipment-db — pull request #14 by rjw57 (2012-10-16 18:08:15+00:00)
Title: Use devise for authentication

This is a bit of a big change but the tests still pass. Move over to using devise (https://github.com/plataformatec/devise) for user authentication. The main win is that we get email confirmation, password reset, etc all for free. The downside is that we need an email solution.

Until the maintainer email support lands, I'd be a bit reticent to merge this since once it is merged a user needs to be able to run 'heroku logs' to sign in on the production site(!) That's less than wonderful.

Finally the migration preserves old users on the system _but_ they need to reset their password via the forgotten link. This is a pain but it is easier than writing some transition code and, since we have no real users for the moment, it seemed a worthwhile thing.

On development, you'll need to keep an eye on the rails log in order to see the confirmation email fly by.