changeset 3846:92ae3d3f0a31

newaccount: remove useless create+email button
author Johannes Berg <johannes AT sipsolutions DOT net>
date Mon, 14 Jul 2008 13:17:26 +0200
parents eb8df08f88f5
children b13f6b68fe43
files MoinMoin/action/newaccount.py
diffstat 1 files changed, 2 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/newaccount.py	Mon Jul 14 13:15:35 2008 +0200
+++ b/MoinMoin/action/newaccount.py	Mon Jul 14 13:17:26 2008 +0200
@@ -83,9 +83,6 @@
     # save data
     theuser.save()
 
-    if form.has_key('create_and_mail'):
-        theuser.mailAccountData()
-
     result = _("User account created! You can use this account to login now...")
     if _debug:
         result = result + util.dumpFormData(form)
@@ -148,13 +145,8 @@
     row.append(html.TD())
     td = html.TD()
     row.append(td)
-    td.append(html.INPUT(type="submit", name="create_only",
+    td.append(html.INPUT(type="submit", name="create",
                          value=_('Create Profile')))
-    if request.cfg.mail_enabled:
-        td.append(html.Text(' '))
-        td.append(html.INPUT(type="submit", name="create_and_mail",
-                             value="%s + %s" % (_('Create Profile'),
-                                                _('Email'))))
 
     return unicode(ret)
 
@@ -174,7 +166,7 @@
     _ = request.getText
     form = request.form
 
-    submitted = form.has_key('create_only') or form.has_key('create_and_mail')
+    submitted = form.has_key('create')
 
     if submitted: # user pressed create button
         request.theme.add_msg(_create_user(request), "dialog")