Mercurial > kallithea
diff rhodecode/controllers/login.py @ 4095:b59568e929ef
fixed password refill in login form when wrong password was given
It's better to not refill the passwords on wrong credentials given.
Standard behaviour on all pages are making the password blank
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 22 Jul 2013 16:01:07 +0200 |
parents | 3b136af34329 |
children | 360f31856657 ffd45b185016 |
line wrap: on
line diff
--- a/rhodecode/controllers/login.py Thu Jul 18 12:31:21 2013 +0200 +++ b/rhodecode/controllers/login.py Mon Jul 22 16:01:07 2013 +0200 @@ -115,6 +115,9 @@ raise HTTPFound(location=url('home'), headers=headers) except formencode.Invalid, errors: + defaults = errors.value + # remove password from filling in form again + del defaults['password'] return htmlfill.render( render('/login.html'), defaults=errors.value,