Mercurial > kallithea
changeset 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 | 8f66758252f8 |
children | 9496c047ea4d |
files | rhodecode/controllers/login.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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,