Browse Source

Minor update

bugfixes
harshadyeola 10 years ago
parent
commit
2ca21919f6
  1. 7
      ee/cli/plugins/secure.py

7
ee/cli/plugins/secure.py

@ -60,12 +60,17 @@ class EESecureController(CementBaseController):
self.app.pargs.user_pass = password
if password == "":
self.app.pargs.user_pass = passwd
Log.debug(self, "printf username:"
"$(openssl passwd -crypt "
"password 2> /dev/null)\n\""
"> /etc/nginx/htpasswd-ee 2>/dev/null")
EEShellExec.cmd_exec(self, "printf \"{username}:"
"$(openssl passwd -crypt "
"{password} 2> /dev/null)\n\""
"> /etc/nginx/htpasswd-ee 2>/dev/null"
.format(username=self.app.pargs.user_input,
password=self.app.pargs.user_pass))
password=self.app.pargs.user_pass),
log=False)
Log.info(self, "Successfully changed HTTP authentication"
" username to : {username}"
.format(username=self.app.pargs.user_input), log=False)

Loading…
Cancel
Save