Skip to content
Permalink
Browse files
bug fix: fix duplicate user issue that fallback to root
  • Loading branch information
usmannasir committed Sep 11, 2020
1 parent bb94ee8 commit 2ce35a3073d8b23cb874be9a6f9fb1fbd0df2ea1
Showing 1 changed file with 1 addition and 9 deletions.
@@ -195,7 +195,7 @@ def submitWebsiteCreation(self, userID=None, data=None):
HA = data['HA']
externalApp = 'nobody'
except:
externalApp = "".join(re.findall("[a-zA-Z]+", domain))[:7]
externalApp = "".join(re.findall("[a-zA-Z]+", domain))[:5] + str(randint(1000, 9999))



@@ -223,14 +223,6 @@ def submitWebsiteCreation(self, userID=None, data=None):
import pwd
counter = 0

while 1:
try:
pwd.getpwnam(externalApp)
externalApp = '%s%s' % (externalApp, str(counter))
counter = counter + 1
except:
break

## Create Configurations

execPath = "/usr/local/CyberCP/bin/python " + virtualHostUtilities.cyberPanel + "/plogical/virtualHostUtilities.py"

0 comments on commit 2ce35a3

Please sign in to comment.