Merge pull request #57 from marineam/passwd

fix(user): Use '*' as default password field rather than '!'
This commit is contained in:
Michael Marineau 2014-04-07 14:13:25 -07:00
commit 58b091061e

View File

@ -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 != "" {