From e2b051a1992ad468d87af325079f766e2e7f5376 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Thu, 22 Sep 2016 19:46:41 +0200 Subject: [feat] rename bonafide.user.signup into create The js was already expecting this name, and the cli was calling it create, but the internal command was 'signup'. --- src/leap/bitmask/cli/user.py | 2 +- src/leap/bitmask/core/dispatcher.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/leap/bitmask/cli/user.py b/src/leap/bitmask/cli/user.py index c34852c2..9ce4dc6a 100644 --- a/src/leap/bitmask/cli/user.py +++ b/src/leap/bitmask/cli/user.py @@ -48,7 +48,7 @@ SUBCOMMANDS: def create(self, raw_args): username = self.username(raw_args) passwd = getpass.getpass() - self.data += ['signup', username, passwd, 'true'] + self.data += ['create', username, passwd, 'true'] return self._send(printer=command.default_dict_printer) def auth(self, raw_args): diff --git a/src/leap/bitmask/core/dispatcher.py b/src/leap/bitmask/core/dispatcher.py index dba75b6a..35f8bf5c 100644 --- a/src/leap/bitmask/core/dispatcher.py +++ b/src/leap/bitmask/core/dispatcher.py @@ -106,7 +106,7 @@ class UserCmd(SubCommand): return bonafide.do_authenticate(user, password, autoconf) @register_method("{'signup': 'ok', 'user': str}") - def do_SIGNUP(self, bonafide, *parts): + def do_CREATE(self, bonafide, *parts): user, password = parts[2], parts[3] autoconf = False if len(parts) > 4: -- cgit v1.2.3