pprotection lswsent

This commit is contained in:
Usman Nasir
2022-06-16 14:36:25 +05:00
parent 689af3903d
commit 65e6e8fffb
3 changed files with 76 additions and 12 deletions

View File

@@ -1282,7 +1282,7 @@ class WebsiteManager:
stdoutput = ProcessUtilities.outputExecutioner(command)
elif setting == 'PasswordProtection':
execPath = f"/usr/local/CyberCP/bin/python {virtualHostUtilities.cyberPanel}/plogical/virtualHostUtilities.py"
execPath = f"{execPath} EnableDisablePP --username '{PPUsername}' --password '{PPPassword}' --virtualHostName {Webobj.domain} --path {path}"
execPath = f"{execPath} EnableDisablePP --username '{PPUsername}' --password '{PPPassword}' --virtualHostName {Webobj.domain} --path {path} --wpid {str(wpsite.id)}"
ProcessUtilities.executioner(execPath)