diff options
author | Ruben Pollan <meskio@sindominio.net> | 2016-05-19 12:27:36 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2016-05-19 12:27:36 +0200 |
commit | 78de4ce3aada7e5c40880175544d679f0228a670 (patch) | |
tree | 19b750f3b155705324ee286edb83e1c240bc824c /bonafide/src | |
parent | c6dc131c371ceba1e21ce963aeedf04aa619f3c4 (diff) |
[feat] remove password from logout
Logout does not need password.
Diffstat (limited to 'bonafide/src')
-rw-r--r-- | bonafide/src/leap/bonafide/_protocol.py | 2 | ||||
-rw-r--r-- | 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 b15c6ac9..9e964af9 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 38c54e1d..4d5ee781 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 |