Refactor acme.sh and WOVariables
This commit is contained in:
@@ -11,7 +11,7 @@ from wo.core.random import RANDOM
|
||||
from wo.core.services import WOService
|
||||
from wo.core.shellexec import WOShellExec
|
||||
from wo.core.template import WOTemplate
|
||||
from wo.core.variables import WOVariables
|
||||
from wo.core.variables import WOVar
|
||||
|
||||
|
||||
def wo_secure_hook(app):
|
||||
@@ -73,10 +73,10 @@ class WOSecureController(CementBaseController):
|
||||
passwd = RANDOM.gen(self, length='24')
|
||||
if not pargs.user_input:
|
||||
username = input("Provide HTTP authentication user "
|
||||
"name [{0}] :".format(WOVariables.wo_user))
|
||||
"name [{0}] :".format(WOVar.wo_user))
|
||||
pargs.user_input = username
|
||||
if username == "":
|
||||
pargs.user_input = WOVariables.wo_user
|
||||
pargs.user_input = WOVar.wo_user
|
||||
if not pargs.user_pass:
|
||||
password = getpass.getpass("Provide HTTP authentication "
|
||||
"password [{0}] :".format(passwd))
|
||||
|
||||
Reference in New Issue
Block a user