Skip to content

Commit 2ca2191

Browse files
committed
Minor update
1 parent 2b33d70 commit 2ca2191

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ee/cli/plugins/secure.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,17 @@ def secure_auth(self):
6060
self.app.pargs.user_pass = password
6161
if password == "":
6262
self.app.pargs.user_pass = passwd
63+
Log.debug(self, "printf username:"
64+
"$(openssl passwd -crypt "
65+
"password 2> /dev/null)\n\""
66+
"> /etc/nginx/htpasswd-ee 2>/dev/null")
6367
EEShellExec.cmd_exec(self, "printf \"{username}:"
6468
"$(openssl passwd -crypt "
6569
"{password} 2> /dev/null)\n\""
6670
"> /etc/nginx/htpasswd-ee 2>/dev/null"
6771
.format(username=self.app.pargs.user_input,
68-
password=self.app.pargs.user_pass))
72+
password=self.app.pargs.user_pass),
73+
log=False)
6974
Log.info(self, "Successfully changed HTTP authentication"
7075
" username to : {username}"
7176
.format(username=self.app.pargs.user_input), log=False)

0 commit comments

Comments
 (0)