DavertMik / doAuthPlugin

Symfony new authentication / user managemant system
MIT License
19 stars 6 forks source link

RememberMe is not working: fix included #9

Open Sewdn opened 14 years ago

Sewdn commented 14 years ago

doAuthRememberMeFilter.class.php uses a reference to an unexistant variabel $q. Suppose it was the query object to fetch the user-object. Replaced $q->fetchOne() with a reference tot the fetched user object

Sewdn commented 14 years ago

Index: doAuthRememberMeFilter.class.php
===================================================================
--- doAuthRememberMeFilter.class.php    (revision 32)
+++ doAuthRememberMeFilter.class.php    (working copy)
@@ -20,7 +20,7 @@
       if ($user)
       {
         if ($value[2] == doAuthTools::rememberHash($user)) {
-          $this->context->getUser()->signIn($q->fetchOne());
+          $this->context->getUser()->signIn($user);
         }       
       }
     }