[Mailman-Developers] return 401 for bad password?
Mark Sapiro
mark at msapiro.net
Sat Jan 30 03:22:42 CET 2010
Mark Sapiro wrote:
> and append
>
> print '401 Unauthorized\n'
>
> to make it
>
> if msg:
> msg = FontAttr(msg, color='#ff0000', size='+1').Format()
> print '401 Unauthorized\n'
Actually, that's wrong on two counts. It should be 'Status: 401
Unauthorized' and there should be no newline as print provides one, so
make it
if msg:
msg = FontAttr(msg, color='#ff0000', size='+1').Format()
print 'Status: 401 Unauthorized'
> This is entirely untested, but should work for both failed admin and
> admindb logins.
And it's still untested.
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Developers
mailing list