fix setUserPass

This commit is contained in:
Mikaël Cluseau 2023-12-17 17:09:34 +01:00
parent 82afd9492a
commit 3be75b9780

View File

@ -133,6 +133,7 @@ func setUserPass(user, passwordHash string) {
p := strings.Split(line, ":") p := strings.Split(line, ":")
if len(p) < 2 || p[0] != user { if len(p) < 2 || p[0] != user {
buf.WriteString(line) buf.WriteString(line)
buf.WriteByte('\n')
continue continue
} }