1. Stéphane Klein
  2. RhodeCode

Commits

Marcin Kuzminski  committed db18772

new style error display for login

  • Participants
  • Parent commits 339d136
  • Branches default

Comments (0)

Files changed (1)

File pylons_app/controllers/login.py

View file
 # encoding: utf-8
 # login controller for pylons
 # Copyright (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com>
- 
+# 
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
 # as published by the Free Software Foundation; version 2
                 return redirect(url('hg_home'))
                                
             except formencode.Invalid as errors:
-                c.form_errors = errors.error_dict
                 return htmlfill.render(
                     render('/login.html'),
                     defaults=errors.value,
+                    errors=errors.error_dict or {},
+                    prefix_error=False,
                     encoding="UTF-8")
                         
         return render('/login.html')