In slices/merb-auth-slice-password/app/controllers/sessions.rb
I added:
before :require_ssl
def require_ssl
throw :halt, proc { redirect "https://#{request.host}#
{request.uri}" } unless request.ssl?
end
This behavior works in my main Application controller just fine.
However its not working here.
This problem also begs two other things:
1 - shouldn't https redirect be a default setting for something like
loging in? I realize it blows for just using mongrel without an https
proxy in front, so needs to have setting to turn it off for dev mode
folks that use mongrel without anything in front.
2 - there have been several cases with the auth slice where the fact
that it does not inherit from my main Application controller causes me
to copy/paste controller and helper code special just for the slice.
I think this is a general issue for slice behaviors.
thanks, Jon
http://shellshadow.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---