Author: allyb
Date: 2010-02-21 23:20:02 +0100 (Sun, 21 Feb 2010)
New Revision: 28173

Modified:
   
plugins/sfEasyAuthPlugin/branches/2010-02-18_integration-of-doctrine/lib/form/sfEasyAuthLoginForm.class.php
   
plugins/sfEasyAuthPlugin/branches/2010-02-18_integration-of-doctrine/modules/sfEasyAuth/templates/loginSuccess.php
Log:
CSRF token correctly rendered in the login form

Modified: 
plugins/sfEasyAuthPlugin/branches/2010-02-18_integration-of-doctrine/lib/form/sfEasyAuthLoginForm.class.php
===================================================================
--- 
plugins/sfEasyAuthPlugin/branches/2010-02-18_integration-of-doctrine/lib/form/sfEasyAuthLoginForm.class.php
 2010-02-21 22:14:59 UTC (rev 28172)
+++ 
plugins/sfEasyAuthPlugin/branches/2010-02-18_integration-of-doctrine/lib/form/sfEasyAuthLoginForm.class.php
 2010-02-21 22:20:02 UTC (rev 28173)
@@ -31,15 +31,17 @@
 
     $this->widgetSchema->setNameFormat('login[%s]');
 
-    $this->setValidators(array(
-      'username' => new sfValidatorString(
-        array('required' => true), 
-        array('required' => 
sfConfig::get('app_sf_easy_auth_username_required_message'))),
-      'password' => new sfValidatorString(
-        array('required' => true),
-        array('required' => 
sfConfig::get('app_sf_easy_auth_password_required_message'))),
-      'remember' => new sfValidatorBoolean()
-      ));
+    $this->setValidators(
+      array(
+        'username' => new sfValidatorString(
+          array('required' => true),
+          array('required' => 
sfConfig::get('app_sf_easy_auth_username_required_message'))),
+        'password' => new sfValidatorString(
+          array('required' => true),
+          array('required' => 
sfConfig::get('app_sf_easy_auth_password_required_message'))),
+        'remember' => new sfValidatorBoolean()
+      )
+    );
 
   }
 }

Modified: 
plugins/sfEasyAuthPlugin/branches/2010-02-18_integration-of-doctrine/modules/sfEasyAuth/templates/loginSuccess.php
===================================================================
--- 
plugins/sfEasyAuthPlugin/branches/2010-02-18_integration-of-doctrine/modules/sfEasyAuth/templates/loginSuccess.php
  2010-02-21 22:14:59 UTC (rev 28172)
+++ 
plugins/sfEasyAuthPlugin/branches/2010-02-18_integration-of-doctrine/modules/sfEasyAuth/templates/loginSuccess.php
  2010-02-21 22:20:02 UTC (rev 28173)
@@ -10,6 +10,7 @@
   <?php endif ?>
 
   <form action="<?php echo url_for('@sf_easy_auth_login') ?>" method="post">
+    <?php echo $loginForm->renderHiddenFields() ?>
     <?php echo $loginForm ?>
 
     <input type="submit" value="Log in" />

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" 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/symfony-svn?hl=en.

Reply via email to