From 78de4ce3aada7e5c40880175544d679f0228a670 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Thu, 19 May 2016 12:27:36 +0200 Subject: [feat] remove password from logout Logout does not need password. --- bonafide/src/leap/bonafide/_protocol.py | 2 +- bonafide/src/leap/bonafide/service.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bonafide/src/leap/bonafide/_protocol.py b/bonafide/src/leap/bonafide/_protocol.py index b15c6ac..9e964af 100644 --- a/bonafide/src/leap/bonafide/_protocol.py +++ b/bonafide/src/leap/bonafide/_protocol.py @@ -127,7 +127,7 @@ class BonafideProtocol(object): d.addCallback(return_token_and_uuid, session) return d - def do_logout(self, full_id, password): + def do_logout(self, full_id): # XXX use the AVATAR here log.msg('LOGOUT for %s' % full_id) session = self._get_session(full_id) diff --git a/bonafide/src/leap/bonafide/service.py b/bonafide/src/leap/bonafide/service.py index 38c54e1..4d5ee78 100644 --- a/bonafide/src/leap/bonafide/service.py +++ b/bonafide/src/leap/bonafide/service.py @@ -89,7 +89,7 @@ class BonafideService(HookableService): d.addCallback(lambda response: {'signup': 'ok', 'user': response}) return d - def do_logout(self, username, password): + def do_logout(self, username): if not username: username = self._active_user @@ -97,7 +97,7 @@ class BonafideService(HookableService): self._active_user = None return passthrough - d = self._bonafide.do_logout(username, password) + d = self._bonafide.do_logout(username) d.addCallback(reset_active) d.addCallback(lambda response: {'logout': 'ok'}) return d -- cgit v1.2.3