[mod_python] Authentification/Session Management

Gregory (Grisha) Trubetskoy grisha at modpython.org
Wed Oct 27 23:40:21 EDT 2004

On Wed, 27 Oct 2004, Terry MacDonald wrote:

>        if 'eggs' == req.user and 'spam' == req.get_basic_auth_pw() :

will fail in some configurations

 	if 'spam' == req.get_basic_auth_pw() and 'eggs' == req.user:

should always work, however

(because get_basic_auth_pw() must be called before looking at req.user)


More information about the Mod_python mailing list