{"id":237,"date":"2008-09-22T10:49:56","date_gmt":"2008-09-22T18:49:56","guid":{"rendered":"http:\/\/www.codebelay.com\/blog\/?p=237"},"modified":"2008-09-22T10:49:56","modified_gmt":"2008-09-22T18:49:56","slug":"sfguardplugin-the-extra-documentation","status":"publish","type":"post","link":"https:\/\/www.codebelay.com\/blog\/2008\/09\/22\/sfguardplugin-the-extra-documentation\/","title":{"rendered":"sfGuardPlugin: The Extra Documentation"},"content":{"rendered":"<p>Hey Folks,<\/p>\n<p>The Symfony project has a section called <a href=\"http:\/\/trac.symfony-project.org\/wiki\/sfGuardPluginExtraDocumentation\">sfGuardPlugin Extra Documentation<\/a>.<\/p>\n<p>It&#8217;s worth a read, especially the part about using the sfGuardUserProfile calls.<\/p>\n<p>The docs haven&#8217;t been updated since March, so if something isn&#8217;t working, <a href=\"http:\/\/www.codebelay.com\/blog\/?p=116\">please refer to my previous blog post on installing the sfGuardPlugin<\/a>.<\/p>\n<p>I&#8217;d like to state that personally, there isn&#8217;t really the right way to do this. Sometimes you already have a table that has a username and password. You can skip using the sfGuardAuth password tables by doing the following:<\/p>\n<pre>\r\n  sf_guard_plugin:\r\n    algorithm_callable: md5\r\n    success_signin_url: @homepage\r\n    profile_class: sfGuardUserProfile\r\n    profile_field_name: account_id\r\n    check_password_callable: [Account, checkPassword]\r\n<\/pre>\n<p>The important line here is check_password_callable, where you are telling symfony to use the Account table and to use your own checkPassword method.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey Folks, The Symfony project has a section called sfGuardPlugin Extra Documentation. It&#8217;s worth a read, especially the part about using the sfGuardUserProfile calls. The docs haven&#8217;t been updated since March, so if something isn&#8217;t working, please refer to my previous blog post on installing the sfGuardPlugin. I&#8217;d like to state that personally, there isn&#8217;t [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,56,33],"tags":[391,112,110],"class_list":["post-237","post","type-post","status-publish","format-standard","hentry","category-how-to","category-php","category-webapps","tag-php","tag-sfguardplugin","tag-symfony"],"_links":{"self":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts\/237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/comments?post=237"}],"version-history":[{"count":0,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts\/237\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/media?parent=237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/categories?post=237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/tags?post=237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}