Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RememberMe is not working: fix included #9

Open
Sewdn opened this issue Nov 13, 2010 · 1 comment
Open

RememberMe is not working: fix included #9

Sewdn opened this issue Nov 13, 2010 · 1 comment

Comments

@Sewdn
Copy link

Sewdn commented Nov 13, 2010

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
Copy link
Author

Sewdn commented Nov 13, 2010

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);
         }       
       }
     }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant