Development

#1705 (sfGuard "Remember Me" filter for SF1.0)

You must first sign up to be able to contribute.

Ticket #1705 (closed documentation: fixed)

Opened 1 year ago

Last modified 1 year ago

sfGuard "Remember Me" filter for SF1.0

Reported by: dhooge Assigned to: davedash
Priority: minor Milestone:
Component: sfGuardPlugin Version: 1.0.0
Keywords: sfguard filter remember cookie Cc:
Qualification:

Description

According to wiki (http://trac.symfony-project.com/trac/wiki/sfGuardPlugin), the "Remember Me" filter is activated through factories.yml. However, it seems that with SF1.0, the proper way is to replace in filters.yml

security:  ~

by

security:  {class: sfGuardBasicSecurityFilter}

Change History

05/06/07 12:26:12 changed by vanchuck

I'm not really sure how this happened because the changes to the workings of the factories.yml config parser (r2661) changed prior to 1.0 beta, yet the changes to readme of the plugin (r3390) were added months after 1.0 was released!

+1 for quick fix-- I'm surprised there was nothing on the forums about this, seems to be a pretty glaring error. I guess not many people use the feature.

05/06/07 17:49:55 changed by davedash

  • owner changed from fabien to davedash.
  • status changed from new to assigned.

That was probably my fault, can you point me to the right part of the documentation to see what the "right" way is to do this?

I probably wrote this using a beta/alpha version of 1.0 and that was the way I did it, and never bothered changing it after 1.0. I'll update the documentation right away.

This still works AFAIK in one of our projects that uses remember me which is probbaly why it hasn't changed or been mentioned in the forum.

05/06/07 18:21:44 changed by dhooge

can you point me to the right part of the documentation to see what the "right" way is to do this?

In the README file, replace

  * Optionally enable the "Remember Me" filter in factories.yml
  {{{
    all:
      security_filter:
        class: sfGuardBasicSecurityFilter
  }}}

by something like

  * Optionally enable the "Remember Me" filter in filters.yml by replacing
  {{{
    security:  ~
  }}}
with
  {{{
    security:  {class: sfGuardBasicSecurityFilter}
  }}}

06/09/07 09:31:56 changed by fabien

  • status changed from assigned to closed.
  • resolution set to fixed.

in r4183

06/19/07 18:19:42 changed by madman

  • status changed from closed to reopened.
  • resolution deleted.

still the wrong filename. now it states settings.yml instead of filters.yml as the file to change.

06/20/07 11:57:55 changed by fabien

  • status changed from reopened to closed.
  • resolution set to fixed.

in r4276