fix cloud-init lock root login issue

This commit is contained in:
ioito
2019-07-03 15:41:43 +08:00
parent 2f7086e17b
commit d3c43fd922
+2 -2
View File
@@ -57,7 +57,7 @@ type SUser struct {
Name string
Passwd string
HashedPasswd string
LockPasswd string
LockPasswd bool
SshAuthorizedKeys []string
Sudo string
}
@@ -164,7 +164,7 @@ func (u *SUser) Password(passwd string) *SUser {
u.Passwd = hash
u.HashedPasswd = hash
}
u.LockPasswd = "false"
u.LockPasswd = false
}
return u
}