contrib/znc-import: leave password empty by default
No need for the "!!" hack, an empty password field means that auth is disabled already.
This commit is contained in:
parent
edaae4d06b
commit
1e5fac0e0a
@ -107,8 +107,6 @@ func main() {
|
|||||||
log.Printf("user %q: updating existing user", username)
|
log.Printf("user %q: updating existing user", username)
|
||||||
} else {
|
} else {
|
||||||
u = database.NewUser(username)
|
u = database.NewUser(username)
|
||||||
// "!!" is an invalid crypt format, thus disables password auth
|
|
||||||
u.Password = "!!"
|
|
||||||
usersCreated++
|
usersCreated++
|
||||||
log.Printf("user %q: creating new user", username)
|
log.Printf("user %q: creating new user", username)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user