Merge pull request #57 from marineam/passwd
fix(user): Use '*' as default password field rather than '!'
This commit is contained in:
commit
58b091061e
@ -34,6 +34,8 @@ func CreateUser(u *User) error {
|
|||||||
|
|
||||||
if u.PasswordHash != "" {
|
if u.PasswordHash != "" {
|
||||||
args = append(args, "--password", u.PasswordHash)
|
args = append(args, "--password", u.PasswordHash)
|
||||||
|
} else {
|
||||||
|
args = append(args, "--password", "*")
|
||||||
}
|
}
|
||||||
|
|
||||||
if u.GECOS != "" {
|
if u.GECOS != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user