# HG changeset patch # User Marcin Kuzminski # Date 1374501667 -7200 # Node ID b59568e929ef91844340695588ae953efbe16c6e # Parent 8f66758252f86e242fdcf645866f17a198de90a6 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 diff -r 8f66758252f8 -r b59568e929ef rhodecode/controllers/login.py --- 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,