Attachment 'http.py.authbasic.patch'
Download 1 --- http.py.org 2008-02-20 13:53:50.000000000 -0800
2 +++ http.py 2008-02-20 13:38:21.000000000 -0800
3 @@ -16,6 +16,7 @@ def http(request, **kw):
4 """ authenticate via http basic/digest/ntlm auth """
5 user_obj = kw.get('user_obj')
6 u = None
7 + cfg = request.cfg
8 # check if we are running Twisted
9 if isinstance(request, request_twisted.Request):
10 username = request.twistd.getUser().decode(config.charset)
11 @@ -43,6 +44,9 @@ def http(request, **kw):
12 # we don't use the moin user profile for those attributes.
13 u = user.User(request, auth_username=username,
14 auth_method='http', auth_attribs=('name', 'password'))
15 + if cfg.auth_http_save_email and cfg.auth_http_email_suffix and u.email == '':
16 + email = username + cfg.auth_http_email_suffix
17 + u.email = email
18
19 if u:
20 u.create_or_update()
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.