fix setUserPass
This commit is contained in:
parent
82afd9492a
commit
3be75b9780
@ -133,6 +133,7 @@ func setUserPass(user, passwordHash string) {
|
||||
p := strings.Split(line, ":")
|
||||
if len(p) < 2 || p[0] != user {
|
||||
buf.WriteString(line)
|
||||
buf.WriteByte('\n')
|
||||
continue
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user