Home ›
Minor race condition in Drupal: If you create admin account through regular screen then finish wizard, it breaksMinor race condition in Drupal: If you create admin account through regular screen then finish wizard, it breaks
Submitted by Benjamin Melançon on March 20, 2009 - 1:20pm
Discovered a race condition type bug in Drupal... if you register another account while the superuser account screen has not been submitted yet, and you use the same username and password for both screens,
things break when you submit the final page of the site setup process, and you can't login as the superuser.
Only as the other user you made.
Which has no powers.
This can be fixed by changing uid 1 from its placeholder values to the username and e-mail address you want, and changing the status from disabled (0) to enabled (1).
But @TODO protect against this happening for people like me who can get distracted from their set-up screens.
Comments
Post new comment