On Fri, Feb 27, 2009 at 4:17 AM, Kristofer Goss <[email protected]> wrote:
> Hi, my app has a web hook which is called when a user is to be > removed/deleted from the application. This is done external from the merb > app itself. I'm unclear about the best way to handle the scenario where > they are removed while still on the site with a valid session cookie. Since > they've already authenticated, the auth strategies will not run, however, > session.user will be set to null. > > One approach would be to have a before filter to verify a user is present > on the session, however, I'm not sure how to exclude this from the > merb-auth-slice-password controller as they have different base classes. > Any suggestions would be really appreciated. > > Thanks > Can you setup a before fileter on the application.rb to call session.user and check if it's nil? That should prolly do the job... Cheers --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
