Changeset - b59568e929ef
[Not reviewed]
default
0 1 0
Marcin Kuzminski - 12 years ago 2013-07-22 16:01:07
marcin@python-works.com
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
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rhodecode/controllers/login.py
Show inline comments
 
@@ -115,6 +115,9 @@ class LoginController(BaseController):
 
                    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,
0 comments (0 inline, 0 general)