Unverified Commit 13963904 authored by meskio's avatar meskio
Browse files

[feat] remove password from logout

Logout doesn't need password.
parent 8008e050
......@@ -252,7 +252,7 @@ def send_command(cli):
data += ['authenticate', username, passwd]
elif subargs.logout:
data += ['logout', username, passwd]
data += ['logout', username]
else:
error('Use bitmask_cli user --help to see available subcommands')
......
......@@ -56,8 +56,8 @@ class UserCmd(SubCommand):
@register_method("{'logout': 'ok'}")
def do_LOGOUT(self, bonafide, *parts):
user, password = parts[2], parts[3]
d = defer.maybeDeferred(bonafide.do_logout, user, password)
user = parts[2]
d = defer.maybeDeferred(bonafide.do_logout, user)
return d
@register_method('str')
......
......@@ -73,7 +73,7 @@ class BonafideService(HookableService):
def do_signup(self, user, password):
return {'signup': 'ok', 'user': 'dummyuser@provider.example.org'}
def do_logout(self, user, password):
def do_logout(self, user):
return {'logout': 'ok'}
def do_get_active_user(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment