Usually user is automatically logged-in just after registration, when "Immediate" user registration mode is selected.
This doesn't work, when "Assign password automatically" configuration option is enabled under "Configuration -> Users -> General" section.
To solve that I propose to auto-login users by their ID and not login+password combination, as for now.