mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-14 07:22:18 +03:00
registration with hostname
This commit is contained in:
parent
d914422320
commit
f4419cfe50
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ class Registration:
|
||||||
def register(self, uuid_depend_mac=False):
|
def register(self, uuid_depend_mac=False):
|
||||||
|
|
||||||
cols = ['jid', 'password', 'registered', 'params', 'timestamp']
|
cols = ['jid', 'password', 'registered', 'params', 'timestamp']
|
||||||
vals = [str(self.generate_uuid(uuid_depend_mac)), str(self.generate_password()), 0,
|
vals = [str(System.Os.hostname()), str(self.generate_password()), 0,
|
||||||
str(self.get_registration_params()), str(datetime.datetime.now().strftime("%d-%m-%Y %I:%M"))]
|
str(self.get_registration_params()), str(datetime.datetime.now().strftime("%d-%m-%Y %I:%M"))]
|
||||||
|
|
||||||
self.db_service.delete('registration', ' 1==1 ')
|
self.db_service.delete('registration', ' 1==1 ')
|
||||||
|
|
Loading…
Reference in a new issue