comparison MoinMoin/auth/http.py @ 4183:fc20a076aad0

Accomodate for consolidation of Request/Response
author Florian Krupicka <florian.krupicka@googlemail.com>
date Sat, 21 Jun 2008 16:57:20 +0200
parents 632696c3c78d
children 424800cd9596
comparison
equal deleted inserted replaced
4182:ca0cf44dab89 4183:fc20a076aad0
33 return user_obj, True 33 return user_obj, True
34 34
35 # for standalone, request authorization and verify it, 35 # for standalone, request authorization and verify it,
36 # deny access if it isn't verified 36 # deny access if it isn't verified
37 if isinstance(request, request_standalone.Request): 37 if isinstance(request, request_standalone.Request):
38 request.response.www_authenticate.set_basic(realm="MoinMoin") 38 request.www_authenticate.set_basic(realm="MoinMoin")
39 39
40 auth = request.authorization 40 auth = request.authorization
41 if auth: 41 if auth:
42 u = user.User(request, auth_username=auth.username, 42 u = user.User(request, auth_username=auth.username,
43 password=auth.password, 43 password=auth.password,