It would be nice if there were generator templates for padrino-warden.
params["email"] || params["password"]
u = User.authenticate(params['email'], params['password'])
u.nil? ? fail!("Could not log in") : success!(u)
Warden::Manager.serialize_into_session do |user|
Warden::Manager.serialize_from_session do |id|
Good idea, hope to set that up soon.
another vote for this
can be moved in padrino-contrib?
I still believe in this but it seems like it could go into contrib certainly and/or probably won't be worked on for 0.12.0. Moving to 0.12.1 for now.
It should really go to padrino-contrib.