Commit 070b7224 authored by segfault's avatar segfault Committed by intrigeri

Don't single-quote the input to mkpasswd (refs: #17792)

parent 000163d1
......@@ -19,7 +19,7 @@ class AdminSetting(object):
# mkpasswd generates a salt if none is provided (even though the
# man page doesn't explicitly state this).
["mkpasswd", "--stdin", "--method=sha512crypt"],
input=shlex.quote(password).encode(),
input=password.encode(),
capture_output=True,
check=True,
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment