diff MoinMoin/user.py @ 3103:4ede355c6089

bugfix for renaming of users (/MoinMoinBugs/RenamingUserAllowsOldUsernameToLogin) (ported from 1.6)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 23 Feb 2008 19:43:26 +0100
parents 65322abb0a33
children a7c1680aeaa0
line wrap: on
line diff
--- a/MoinMoin/user.py	Sat Feb 23 16:14:04 2008 +0100
+++ b/MoinMoin/user.py	Sat Feb 23 19:43:26 2008 +0100
@@ -616,6 +616,14 @@
             data.write(line)
         data.close()
 
+        arena = 'user'
+        key = 'name2id'
+        cache = caching.CacheEntry(self._request, arena, key, scope='wiki').remove()
+        try:
+            del self._request.cfg.cache.name2id
+        except:
+            pass
+        
         if not self.disabled:
             self.valid = 1