Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
640:8211b462af6b | 641:49587e170f53 |
---|---|
115 return d | 115 return d |
116 | 116 |
117 def _profileRegistered(self, result, email, password, profile): | 117 def _profileRegistered(self, result, email, password, profile): |
118 | 118 |
119 #FIXME: values must be in a config file instead of hardcoded | 119 #FIXME: values must be in a config file instead of hardcoded |
120 self.host.memory.setParam("JabberID", "%s@%s/%s" % (profile, _NEW_ACCOUNT_DOMAIN, _NEW_ACCOUNT_RESOURCE), "Connection", profile) | 120 self.host.memory.setParam("JabberID", "%s@%s/%s" % (profile, _NEW_ACCOUNT_DOMAIN, _NEW_ACCOUNT_RESOURCE), |
121 self.host.memory.setParam("Server", _NEW_ACCOUNT_SERVER, "Connection", profile) | 121 "Connection", profile_key=profile) |
122 self.host.memory.setParam("Password", password, "Connection", profile) | 122 self.host.memory.setParam("Server", _NEW_ACCOUNT_SERVER, |
123 "Connection", profile_key=profile) | |
124 self.host.memory.setParam("Password", password, | |
125 "Connection", profile_key=profile) | |
123 #and the account | 126 #and the account |
124 | 127 |
125 #XXX: we use "prosodyctl adduser" because "register" doesn't check conflict | 128 #XXX: we use "prosodyctl adduser" because "register" doesn't check conflict |
126 # and just change the password if the account already exists | 129 # and just change the password if the account already exists |
127 d = defer.Deferred() | 130 d = defer.Deferred() |