59
59
"""Ask for a password if none is already provided in the request"""
60
60
# TODO: jam 20060915 There should be a test that asserts we ask
61
61
# for a password at the right time.
62
64
if request.password is None:
63
65
# We can't predict realm, let's try None, we'll get a
64
66
# 401 if we are wrong anyway
68
68
# Query the password manager first
69
69
user, password = password_manager.find_user_password(None, host)
70
70
if user == request.user and password is not None: