# HG changeset patch # User Mads Kiilerich # Date 2016-05-02 23:45:26 # Node ID 78bba376a5086540a51833d4a77cdb1de0bd198f # Parent 110b504916b6095e3bab80cd0e5afca8db0efbcf login: don't crash on login POSTs without password diff --git a/kallithea/controllers/login.py b/kallithea/controllers/login.py --- a/kallithea/controllers/login.py +++ b/kallithea/controllers/login.py @@ -95,7 +95,7 @@ class LoginController(BaseController): 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,