changeset 4631:7fbbdd3e58a9

login action: fix formatting of error messages
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 20 Feb 2009 02:09:29 +0100
parents b0319cfcb1bc
children 81598e8c735b
files MoinMoin/action/login.py
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/login.py	Wed Feb 18 06:53:55 2009 +0100
+++ b/MoinMoin/action/login.py	Fri Feb 20 02:09:29 2009 +0100
@@ -64,13 +64,9 @@
         if islogin: # user pressed login button
             if request._login_multistage:
                 return self.handle_multistage()
-            error = []
             if hasattr(request, '_login_messages'):
                 for msg in request._login_messages:
-                    error.append('<p>')
-                    error.append(msg)
-                error = ''.join(error)
-            request.theme.add_msg(error, "error")
+                    request.theme.add_msg(msg, "error")
             return self.page.send_page()
 
         else: # show login form