diff options
| author | Zaran <zaran.krleza@gmail.com> | 2011-05-19 18:23:01 +0200 |
|---|---|---|
| committer | Zaran <zaran.krleza@gmail.com> | 2011-05-19 18:23:01 +0200 |
| commit | c0a9f62a2143bcf32ee9a6db656c8682094cda68 (patch) | |
| tree | 87487d20d37d9e8056e145b7e07df8c38c698ebf /server/xep_0077.py | |
| parent | 90844a0704f94e1cb69d9abc7546392d7a18d3b5 (diff) | |
| download | alias-c0a9f62a2143bcf32ee9a6db656c8682094cda68.tar.gz | |
Remove the salt field from the registration form.
The privkey is handled by the sjcl as a JSON structure containing
the ciphertext, the salt, etc. so we don't need a separate field
for the salt.
Diffstat (limited to 'server/xep_0077.py')
| -rw-r--r-- | server/xep_0077.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/server/xep_0077.py b/server/xep_0077.py index ba6523d..f461fb6 100644 --- a/server/xep_0077.py +++ b/server/xep_0077.py @@ -51,10 +51,9 @@ class Registration(ElementBase): def add_form(self): aliasform = Form(None, self) - aliasform.addField(ftype="hidden",var="FORM_TYPE",value="alias:register") - aliasform.addField(var="pubkey",ftype="text-single", label="Public Key", required=True) - aliasform.addField(var="privkey",ftype="text-single", label="Private Key", required=True) - aliasform.addField(var="salt",ftype="text-single", label="Salt", required=True) + aliasform.addField(ftype = "hidden", var = "FORM_TYPE", value = "alias:register") + aliasform.addField(var = "pubkey", ftype = "text-single", label = "Public Key", required = True) + aliasform.addField(var = "privkey", ftype = "text-single", label = "Private Key", required = True) def get_form(self): return Form(self.xml.find('{jabber:x:data}x')).getValues() @@ -70,7 +69,7 @@ class xep_0077(base_plugin): def plugin_init(self): self.description = "In-Band Registration" self.xep = "0077" - self.form_fields = ("privkey", "pubkey", "salt") + self.form_fields = ("privkey", "pubkey") self.form_instructions = "Please provide the following information to register\ an alias account" |
