summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2016-09-22 19:46:41 +0200
committerRuben Pollan <meskio@sindominio.net>2016-09-23 10:27:19 +0200
commite2b051a1992ad468d87af325079f766e2e7f5376 (patch)
tree9e7c0a9732551641758dbe39ca5476e54ed4e5e9 /src
parenta031d5ce2fd447d0ba88a95134827f936201b03b (diff)
[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'.
Diffstat (limited to 'src')
-rw-r--r--src/leap/bitmask/cli/user.py2
-rw-r--r--src/leap/bitmask/core/dispatcher.py2
2 files changed, 2 insertions, 2 deletions
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: