mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-10 01:52:25 +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):
|
||||
|
||||
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"))]
|
||||
|
||||
self.db_service.delete('registration', ' 1==1 ')
|
||||
|
|
Loading…
Reference in a new issue