I want to write a function which sets cookie when user is not authenticated. So after authenticate_user! if user is not authenticated the cookie is set. Can this be done in devise.
I tried doing it by customizing authenticate_user! function, but can’t find anything.
Thanks
Are you using
before_filterto callauthenticate_user!? Can’t you just do: