changeset 2155:4138e1f06617

Make it possible to unset user's jid in preferences.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Mon, 18 Jun 2007 03:17:50 +0200
parents f2ae2f08958d
children e2aa8372c4bf
files MoinMoin/userform.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/userform.py	Mon Jun 18 03:10:30 2007 +0200
+++ b/MoinMoin/userform.py	Mon Jun 18 03:17:50 2007 +0200
@@ -237,7 +237,7 @@
                     
         if not 'jid' in theuser.auth_attribs:
             # try to get the jid
-            jid = wikiutil.clean_input(form.get('jid', [theuser.jid])[0]).strip()
+            jid = wikiutil.clean_input(form.get('jid', "")).strip()
             
             jid_changed = theuser.jid != jid
             previous_jid = theuser.jid