Attachment 'EmailAlwaysNeeded.diff'

Download

   1 # HG changeset patch
   2 # User Federico G. Schwindt <fgsch@lodoss.net>
   3 # Date 1207918348 -3600
   4 # Node ID f8216014c486259559aa259b3f6eb313395366a8
   5 # Parent  88356b3f849ab809a540a36715314daf309cf1a8
   6 Ignore empty emails if `email' is present in user_form_remove.
   7 
   8 diff -r 88356b3f849a -r f8216014c486 MoinMoin/action/newaccount.py
   9 --- a/MoinMoin/action/newaccount.py	Fri Apr 11 00:03:36 2008 +0200
  10 +++ b/MoinMoin/action/newaccount.py	Fri Apr 11 13:52:28 2008 +0100
  11 @@ -70,7 +70,7 @@
  12      # try to get the email, for new users it is required
  13      email = wikiutil.clean_input(form.get('email', [''])[0])
  14      theuser.email = email.strip()
  15 -    if not theuser.email:
  16 +    if not theuser.email and 'email' not in request.cfg.user_form_remove:
  17          return _("Please provide your email address. If you lose your"
  18                   " login information, you can get it by email.")
  19  
  20 diff -r 88356b3f849a -r f8216014c486 MoinMoin/userprefs/prefs.py
  21 --- a/MoinMoin/userprefs/prefs.py	Fri Apr 11 00:03:36 2008 +0200
  22 +++ b/MoinMoin/userprefs/prefs.py	Fri Apr 11 13:52:28 2008 +0100
  23 @@ -92,7 +92,7 @@
  24              theuser.email = email.strip()
  25  
  26              # Require email
  27 -            if not theuser.email:
  28 +            if not theuser.email and 'email' not in self.request.cfg.user_form_remove:
  29                  return _("Please provide your email address. If you lose your"
  30                           " login information, you can get it by email.")
  31  

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] (2008-04-11 12:55:07, 1.4 KB) [[attachment:EmailAlwaysNeeded.diff]]
 All files | Selected Files: delete move to page copy to page

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