On 11/21/08, Jon Hancock <[EMAIL PROTECTED]> wrote:
>
> ok, thanks for confirming. I'll add it to lighthouse.
> btw, I have a fully functional user and session system now leveraging
> your slice. Its testing out very well so far. My user model is of
> moderate maturity (registration confirm, email address change and
> confirmations, password resets, etc.). I intend to extract a sample
> app and publish in a week or two.
> Jon
>
Cool man that's ace. Will you be extracting as a slice?
> On Nov 20, 9:37 pm, "Daniel N" <[EMAIL PROTECTED]> wrote:
>> On Thu, Nov 20, 2008 at 4:54 PM, Jon Hancock <[EMAIL PROTECTED]>
>> wrote:
>>
>> > I'm trying to filter the password from merb log.
>> > Since MerbAuthSlicePassword::Sessions doesn't inherit from my app
>> > Application controller, I add the following to class
>> > MerbAuthSlicePassword::Sessions in slices/merb-auth/app/controller/
>> > sessions.rb as follows:
>>
>> > class MerbAuthSlicePassword::Sessions <
>> > MerbAuthSlicePassword::Application
>>
>> > log_params_filtered :password
>>
>> > ...
>> > end
>>
>> > Now my merb log shows the two lines:
>>
>> > merb : worker (port 4000) ~ Routed to: {"Submit"=>"Log In",
>> > "action"=>"update", "_method"=>"put",
>> > "controller"=>"merb_auth_slice_password/sessions",
>> > "password"=>"my_cleartext_password",
>> > "email"=>"[EMAIL PROTECTED]"}
>>
>> > merb : worker (port 4000) ~ Params: {"Submit"=>"Log In",
>> > "_method"=>"put", "action"=>"update",
>> > "controller"=>"merb_auth_slice_password/sessions",
>> > "password"=>"[FILTERED]", "email"=>"[EMAIL PROTECTED]"}
>>
>> > Notice the first log output ("~ Routed to:") shows the password and
>> > the second output (the "~ Params:") properly filters.
>> > This doesn't appear to be a bug in the slice but in merb or the
>> > logging.
>>
>> > Have I done something wrong or this a bug? This is in development
>> > mode with logging to console as is configured by a default "merb-gen
>> > app" structure.
>>
>> > thanks, Jon
>>
>> Hey Jon,
>>
>> This is how I would use the protected params plugin. I'm surprised that
>> this is happening :(
>>
>> I'd be interested to find out what the issue is here :(
>>
>> Cheers
>> Daniel
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---