5 ms·
There are various Rails plugins that take care of most of this stuff. I've had great success with restful_authentication (http://github.com/technoweenie/restful
by myoung8 16y ago
There are various Rails plugins that take care of most of this stuff. I've had great success with restful_authentication (http://github.com/technoweenie/restful-authentication http://github.com/technoweenie/restful-authentication)
- steveklabnik 16y agoYou should check out AuthLogic. restful-auth's generator based approach is awkward sometimes, and it hasn't been updated in forever...
- SingAlong 16y agoDevise has been my choice in recent times. but beware it has no roles. it's simple and bakes in everything though. so in 2 commands in the terminal you'll see a login system in your browser including forgot password feature that authlogic doesn't give you. Making all of those features Samparicio said would be a little tough for code reuse. Engines feature was planned for Rails 3.0 beta but pushed to 3.x. That's the feature that can help code reuse. But it's possible to do this neatly on Django, which allows component-based architecture for apps.
- steveklabnik 16y agoAuthlogic has no roles either, I use acl9. Authlogic and forgotten passwords is pretty simple, though. It sort of gives it to you. Well, it gives you the tools. It's really only a tiny bit of coding. I'll certainly check out Devise though.