Hi,  I thought I had caught all the instances where it is using - instead of
_

Merb::Slices::config[:"merb_auth_slice_password"][:no_default_strategies] =
true

HTH

On Mon, Jan 12, 2009 at 6:58 AM, baaz <[email protected]> wrote:

>
> Does that mean that the default password form strategy is not
> activated? (in other words that the config setting is taken into
> account?
>
> On Jan 11, 2:03 am, scottmotte <[email protected]> wrote:
> > I got lucky. After fiddling with it, the setting is now:
> > MerbAuthSlicePassword[:no_default_strategies] = true
> >
> > On Jan 10, 4:26 pm, scottmotte <[email protected]> wrote:
> >
> > > I am wondering the same thing. It looks like a bug to me. Hassox, have
> > > you run into this?
> >
> > > On Dec 16 2008, 2:31 pm, baaz <[email protected]> wrote:
> >
> > > > Hi,
> >
> > > > I was playing around with merb-auth and strategies to know exactly
> how
> > > > they work. I noticed that no matter what I set the
> Merb::Slices::config
> > > > [:"merb-auth-slice-password"][:no_default_strategies] param in my
> > > > strategies.rb file, the :default_password_form strategy will be
> > > > activated.
> >
> > > > strategies.rb:
> >
> > > > Merb::Slices::config[:"merb-auth-slice-password"]
> > > > [:no_default_strategies] = true
> >
> > > > # Merb::Authentication.activate!(:default_basic_auth)
> > > > # Merb::Authentication.activate!(:default_password_form)
> >
> > > > ----------
> > > > merb-auth-slice-password.rb (in the merb-auth-slice-password gem
> > > > code):
> >
> > > > (...)
> > > >     def self.init
> > > >       require 'merb-auth-more/mixins/redirect_back'
> > > >       unless MerbAuthSlicePassword[:no_default_strategies]
> > > >         puts "XXX self.init: :default_password_form activated"
> > > >         ::Merb::Authentication.activate!(:default_password_form)
> > > >       end
> > > >     end
> > > > (...)
> >
> > > > Basically I always see the "XXX self.init: :default_password_form
> > > > activated" message on the console, regardless of the value of
> > > > Merb::Slices::config[:"merb-auth-slice-password"]
> > > > [:no_default_strategies]. I am not sure if this is a feature or a
> bug,
> > > > it may very well be that I am missing a point. If someone could shed
> a
> > > > light on this, it would be cool.
> >
> > > > Most importantly, I have to say that merb-auth is simply awesome,
> > > > really!
> > > > Balint
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to