News for hackers. Stuff that matters.
Re:Rate my tiny web app: my-foc.us by doctorzaius on Tuesday May 04, 2010 @10:40PM (#1320158)
You're storing passwords in plain-text. No-no.

May I recommend one of the following:

http://github.com/thoughtbot/clearance http://github.com/binarylogic/authlogic http://github.com/plataformatec/devise

Re:Rate my tiny web app: my-foc.us by mark_l_watson on Tuesday May 04, 2010 @11:43PM (#1320277)
Right you are, thanks. I'll fix that. I'll probably leave the email code as-is and add a random salt for each account, run crypt and just save the salt and hash for each user.
Re:Rate my tiny web app: my-foc.us by mark_l_watson on Wednesday May 05, 2010 @12:54PM (#1321726)
I just added a few lines of code to migrate the database to encrypt passwords with a per user salt (not the best salt, but adds some flavor :-)

Thanks again for pointing that out.