Commit cea42371 authored by segfault's avatar segfault

Greeter: Add comment

parent e057f216
......@@ -15,7 +15,9 @@ class AdminSetting(object):
def save(self, password: str):
proc = subprocess.run(
["mkpasswd", "-s", "--method=sha512crypt"],
# mkpasswd generates a salt if none is provided (even though the
# man page doesn't explicitly state this).
["mkpasswd", "--stdin", "--method=sha512crypt"],
input=pipes.quote(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