Mercurial > libervia-backend
diff src/plugins/plugin_misc_account.py @ 641:49587e170f53
core: added the security_limit to setParam
- params with a security greater than security_limit can not be modified
- special value: security_limit < 0 disable the check (all params can be modified)
author | souliane <souliane@mailoo.org> |
---|---|
date | Sat, 07 Sep 2013 02:03:17 +0200 |
parents | 84a6e83157c2 |
children | 53de6954e94e |
line wrap: on
line diff
--- a/src/plugins/plugin_misc_account.py Sun Sep 08 19:18:46 2013 +0200 +++ b/src/plugins/plugin_misc_account.py Sat Sep 07 02:03:17 2013 +0200 @@ -117,9 +117,12 @@ def _profileRegistered(self, result, email, password, profile): #FIXME: values must be in a config file instead of hardcoded - self.host.memory.setParam("JabberID", "%s@%s/%s" % (profile, _NEW_ACCOUNT_DOMAIN, _NEW_ACCOUNT_RESOURCE), "Connection", profile) - self.host.memory.setParam("Server", _NEW_ACCOUNT_SERVER, "Connection", profile) - self.host.memory.setParam("Password", password, "Connection", profile) + self.host.memory.setParam("JabberID", "%s@%s/%s" % (profile, _NEW_ACCOUNT_DOMAIN, _NEW_ACCOUNT_RESOURCE), + "Connection", profile_key=profile) + self.host.memory.setParam("Server", _NEW_ACCOUNT_SERVER, + "Connection", profile_key=profile) + self.host.memory.setParam("Password", password, + "Connection", profile_key=profile) #and the account #XXX: we use "prosodyctl adduser" because "register" doesn't check conflict