hm, I don't see this effect over here - should do_template require http based authentication in first place?
I guess there is something else wrong.
That typo which I just committed just ommits the template with the login dialog, so this is a completely different thing.
I see a cookie in the request... so why? Maybe you should have another look at the conditions of your system?