mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-25 11:12:15 +03:00
registration parameters were extended
This commit is contained in:
parent
046ebe426b
commit
a30213bf51
1 changed files with 4 additions and 1 deletions
|
@ -111,13 +111,16 @@ class Messaging(object):
|
|||
def registration_msg(self):
|
||||
data = {}
|
||||
data['type'] = 'REGISTER'
|
||||
data['from'] = self.db_service.select_one_result('registration', 'jid', ' 1=1') # str(self.conf_manager.get('REGISTRATION', 'from'))
|
||||
data['from'] = self.db_service.select_one_result('registration', 'jid', ' 1=1')
|
||||
data['password'] = self.db_service.select_one_result('registration', 'password', ' 1=1')
|
||||
|
||||
params = self.db_service.select_one_result('registration', 'params', ' 1=1')
|
||||
data['parameters'] = json.loads(str(params))
|
||||
json_params = json.loads(str(params))
|
||||
data['macAddresses'] = json_params['macAddresses']
|
||||
data['ipAddresses'] = json_params['ipAddresses']
|
||||
data['hostname'] = json_params['hostname']
|
||||
|
||||
data['timestamp'] = self.db_service.select_one_result('registration', 'timestamp', ' 1=1')
|
||||
json_data = json.dumps(data)
|
||||
self.logger.debug('[Messaging] Registration message was created')
|
||||
|
|
Loading…
Reference in a new issue