diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2016-10-03 17:40:09 -0400 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2016-10-04 11:48:30 -0400 |
commit | af27100e35f30f91f3c8f3eb4b8fcef978d11eae (patch) | |
tree | 92e1bdb9ebdb8e00aa84dbfefbda1b75e6cb883c /src/leap/bitmask/bonafide/session.py | |
parent | ff3ed1e9418eab21fd42bb5ddd96a3851a25801c (diff) |
[feature] handle invite codes
In the command line, --invitecode is a new optional parameter to
the command "user create".
bonafide service handles the invite codes.
javascript library should be updated accordingly
- Resolves: #7550
Diffstat (limited to 'src/leap/bitmask/bonafide/session.py')
-rw-r--r-- | src/leap/bitmask/bonafide/session.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/bitmask/bonafide/session.py b/src/leap/bitmask/bonafide/session.py index abb697a..213e773 100644 --- a/src/leap/bitmask/bonafide/session.py +++ b/src/leap/bitmask/bonafide/session.py @@ -162,13 +162,13 @@ class Session(object): # User management @defer.inlineCallbacks - def signup(self, username, password): + def signup(self, username, password, invite=None): # XXX should check that it_IS_NOT_authenticated provider.validate_username(username) uri = self._api.get_signup_uri() met = self._api.get_signup_method() params = self._srp_signup.get_signup_params( - username, password) + username, password, invite) signup = yield self._request(self._agent, uri, values=params, method=met) |