Mercurial > kallithea
changeset 5883:78bba376a508
login: don't crash on login POSTs without password
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Mon, 02 May 2016 23:45:26 +0200 |
parents | 110b504916b6 |
children | d170cf8cf5b1 |
files | kallithea/controllers/login.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/controllers/login.py Wed May 04 01:18:25 2016 +0200 +++ b/kallithea/controllers/login.py Mon May 02 23:45:26 2016 +0200 @@ -95,7 +95,7 @@ except formencode.Invalid as errors: defaults = errors.value # remove password from filling in form again - del defaults['password'] + defaults.pop('password', None) return htmlfill.render( render('/login.html'), defaults=errors.value,