Extra self

This commit is contained in:
Matthias Bussonnier 2017-11-21 19:49:29 +01:00
parent 9071d7f36e
commit eca4c71056

View File

@ -82,7 +82,7 @@ class LoginHandler(IPythonHandler):
self.set_login_cookie(self, uuid.uuid4().hex)
elif self.token and self.token == typed_password:
self.set_login_cookie(self, uuid.uuid4().hex)
if self.new_password and self.settings.get('allow_password_change'):
if new_password and self.settings.get('allow_password_change'):
config_dir = self.settings.get('config_dir')
config_file = os.path.join(config_dir, 'jupyter_notebook_config.json')
set_password(new_password, config_file=config_file)