Show More
@@ -2,7 +2,7 b'' | |||||
2 | # encoding: utf-8 |
|
2 | # encoding: utf-8 | |
3 | # login controller for pylons |
|
3 | # login controller for pylons | |
4 | # Copyright (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com> |
|
4 | # Copyright (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com> | |
5 |
|
5 | # | ||
6 | # This program is free software; you can redistribute it and/or |
|
6 | # This program is free software; you can redistribute it and/or | |
7 | # modify it under the terms of the GNU General Public License |
|
7 | # modify it under the terms of the GNU General Public License | |
8 | # as published by the Free Software Foundation; version 2 |
|
8 | # as published by the Free Software Foundation; version 2 | |
@@ -51,10 +51,11 b' class LoginController(BaseController):' | |||||
51 | return redirect(url('hg_home')) |
|
51 | return redirect(url('hg_home')) | |
52 |
|
52 | |||
53 | except formencode.Invalid as errors: |
|
53 | except formencode.Invalid as errors: | |
54 | c.form_errors = errors.error_dict |
|
|||
55 | return htmlfill.render( |
|
54 | return htmlfill.render( | |
56 | render('/login.html'), |
|
55 | render('/login.html'), | |
57 | defaults=errors.value, |
|
56 | defaults=errors.value, | |
|
57 | errors=errors.error_dict or {}, | |||
|
58 | prefix_error=False, | |||
58 | encoding="UTF-8") |
|
59 | encoding="UTF-8") | |
59 |
|
60 | |||
60 | return render('/login.html') |
|
61 | return render('/login.html') |
General Comments 0
You need to be logged in to leave comments.
Login now