diff MoinMoin/action/newaccount.py @ 2967:a310264ad186

Added a few add_msg calls (by Federico Lorenzi).
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Mon, 24 Dec 2007 00:16:48 +0100
parents 78d96fd775ba
children 7b0aadb97d01
line wrap: on
line diff
--- a/MoinMoin/action/newaccount.py	Sun Dec 23 23:52:43 2007 +0100
+++ b/MoinMoin/action/newaccount.py	Mon Dec 24 00:16:48 2007 +0100
@@ -149,8 +149,8 @@
     submitted = form.has_key('create_only') or form.has_key('create_and_mail')
 
     if submitted: # user pressed create button
-        error = _create_user(request)
-        return page.send_page(msg=error)
+        request.theme.add_msg(_create_user(request), "dialog")
+        return page.send_page()
     else: # show create form
         request.emit_http_headers()
         request.theme.send_title(_("Create Account"), pagename=pagename)