Posted by greenbonsai on May 4, 2009 at 9:07pm
| Project: | LoginToboggan |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
- Without
LoginToboggan upon completing the registration form everything is fine and user is logged in, because of the "Require email verification when a visitor creates an account" being unchecked in user settings.
- With
LoginToboggan activated the user is only returned to the front page without being logged in.
Everything else is fine with having the "pre-authorized" user permission. It just isn't logging the users in after registration.
Comments
#1
Sorry this was meant to be a support request.
It's still driving me nuts trying to figure it out though. The funny thing is I've had a past version work perfectly for me and I don't feel like I've done anything different this time around. I've read through the .txt support files to see if I'm missing a configuration somewhere and I can't seem to find anything. Any help would be much appreciated.
#2
please try disabling all other contrib modules and retesting. if the problem persists, then it may be something we need to look into further.
#3
I was having this problem, and it was caused by me having a trigger that redirects the user to a certain url immediately after registration. I'm now using logintoboggan to do the redirect, and the immediate login works :)
#4
nobody else is having this issue. feel free to reopen if you can reproduce with the latest core and LT modules, and no other contribs enabled. also see the trigger suggestion in #3.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.
#6
I tested this with latest Drupal Vanilla core and latest LT -> works fine. But with latest Pressflow it's not working. Immediate login doesn't happen. I don't know if its a LT or Pressflow issue.
#7
moving to what i think is the right queue.
#8
Arrrrrrrgggggggggggg! thanks for posting this! It's not working for me in pressflow either.
#9
This is not the queue for Pressflow. Use http://pressflow.org/
#10
New bug at pressflow.org https://bugs.launchpad.net/pressflow/+bug/521966
#11
Un workaround sería este:
LoginToboggan presenta un Bug en el autologueo para versiones de Pressflow, y ahi que adicionar la línea
drupal_session_regenerate();
antes de user_module_invoke
en la función logintoboggan_process_login(....)
Esta solución la implemnté basandome en:
This is a bug in LoginToboggan (which is actually a huge hack of a module because it overrides deep core functionality). Using LoginToboggan is like applying a real patch to the user module.
Regular Drupal core calls "sess_regenerate()" and Pressflow calls its equivalent "drupal_session_regenerate()" before "user_module_invoke('login', $edit, $user);" LoginToboggan does not call either. While normal Drupal is not sensitive to this mistake, Pressflow is.
LoginToboggan should add a call to "drupal_session_regenerate()" if the function exists (the Pressflow case) or "sess_regenerate()" if it doesn't (the Drupal case). LoginToboggan could add *only* a call to "sess_regenerate()", but that would break if session.inc is replaced with something like the memcache module.
Fuente:
https://answers.launchpad.net/pressflow/+question/96253
#12
I'm moving this back to LoginToboggan issue queue, since it really is a LT issue. See https://answers.launchpad.net/pressflow/+question/96253.
#13
i added sess_regenerate(); to the LT module at...
function logintoboggan_process_login($account, $edit, $redirect = array()){
global $user;
$user = $account;
+ sess_regenerate();
but its still not working for me... any ideas?
thanks for this great module!
#14
subscribing - for me Immediate Login works most the time..but there are times when it doesn't work..seems random and not sure what may cause it.
#15
For information, I have the same issue and I am using pressflow too.
just for the accountability of things.
#16
Patch from #11, credit to abustamante.
Works for us, needs regular Drupal 6 (rather than Pressflow) testing.
#17
this issue has been addressed in http://drupal.org/node/797142
#18
I am still experiencing issues with immediate login. Users should be immediately logged in and sent to frontpage, but instead users are not being logged in and sent to frontpage.
I'm using LoginToboggan 6.x-1.x-dev (2010-May-13)
#19
the problem raised in this issue has been fixed. please open another issue if you are experiencing a problem. however, before you do so, please disable all other contrib modules besides logintoboggan and see if the bug still persists. if not, then find the other module causing the problem, and file a bug there.
#20
Automatically closed -- issue fixed for 2 weeks with no activity.
#21
I have tested this issue, and i found it with a clean drupal installation when using actions/triggers. The "immediate login" option work fine if no trigger are defined, but this issue appear when i create a trigger launched after a successful registration.
#22
@nightywolf: please include all your LT settings, user settings, and relevant trigger settings, and i'll have a look and see if i can also reproduce.
#23
Hi
I have added some screenshots commented in english, because the the default language of my site is french.
#24
It does not work for me too!
#25
I tried the solutions & patch above, but these aren't working.
Anyone that can help?
Thanks,
Gunther
#26
For me, user is always logged in! I cant turn off it to log in the user immediately. I dont wanna the user be logged in after first registration.
#27
RESOLVED: This was driving me nuts and the previous comment fixed it for me - i.e. the issue is when there is a trigger set that redirects a user to a particular URL after registering. I deleted that trigger and used the setting in login toboggan to redirect to the URL instead.
#29
i'm assuming that the solution posted in #27 fixes the issue.
#30
Automatically closed -- issue fixed for 2 weeks with no activity.