Attachment 'disabled-login-fix.patch.txt'

Download

   1 diff -Nur moin-1.5.8/MoinMoin/user.py moin-1.5.8.new/MoinMoin/user.py
   2 --- moin-1.5.8/MoinMoin/user.py	2006-10-08 23:06:37.000000000 +1000
   3 +++ moin-1.5.8.new/MoinMoin/user.py	2007-11-15 17:21:35.000000000 +1000
   4 @@ -366,6 +366,9 @@
   5          changed = 0
   6  
   7          if check_pass:
   8 +	    # Disabled users can't be validated even if they know the password
   9 +	    if self.disabled:
  10 +	        return
  11              # If we have no password set, we don't accept login with username
  12              if not user_data['enc_password']:
  13                  return
  14 diff -Nur moin-1.5.8/MoinMoin/auth.py moin-1.5.8.new/MoinMoin/auth.py
  15 --- moin-1.5.8/MoinMoin/auth.py	2007-02-08 00:31:27.000000000 +1000
  16 +++ moin-1.5.8.new/MoinMoin/auth.py	2007-11-15 17:20:34.000000000 +1000
  17 @@ -150,6 +150,9 @@
  18          u = user.User(request, id=cookie['MOIN_ID'].value,
  19                        auth_method='moin_cookie', auth_attribs=())
  20  
  21 +	if not u.valid:
  22 +	    return user_obj, True
  23 +
  24          if logout:
  25              u.valid = 0 # just make user invalid, but remember him
  26  

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.
  • [get | view] (2007-11-15 08:01:33, 1.0 KB) [[attachment:disabled-login-fix.patch.txt]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.