3 ms·
You're storing passwords in plain-text. No-no. May I recommend one of the following: http://github.com/thoughtbot/clearance http://github.com/thoughtbot/clear
by doctorzaius 17y ago
You're storing passwords in plain-text. No-no.
May I recommend one of the following:
http://github.com/thoughtbot/clearance http://github.com/thoughtbot/clearance
http://github.com/binarylogic/authlogic http://github.com/binarylogic/authlogic
http://github.com/plataformatec/devise http://github.com/plataformatec/devise
- mark_l_watson 17y agoRight 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.
- mark_l_watson 17y agoI 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.