Users Must try to Login Twice
paradigmshifter - December 8, 2008 - 23:09
| Project: | vBulletin to Drupal |
| Version: | 5.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
After migration users must try to login with the correct password twice before they can enter.
When first entering the correct user and pass they're told it was an incorrect login attempt but the "pass" field in the "user" DB table is modified. On the next attempt they're able to login.
Does anyone know what may be causing this?

#1
Found the problem if anyone else is experiencing this... It stems from a bug in the user.module
function user_authenticated()
~line 1009 (Is wrongly)
$registered_user = user_load(array('name' => $name));if (!$registered_user->uid) { // Register this new user.
Should be replaced with
$user = user_load(array('name' => $name));if (!$user->uid) { // Register this new user.
Cheers
#2
I believe I resolved this issue, some time ago (there was a change in the way Drupal 5 handled 'remote' authentication). Please re-open if it's still a problem.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.