Imager: Fix for when user password is empty. (#6632)
This commit is contained in:
Родитель
865013e1a2
Коммит
d3a22c25f4
|
@ -1188,11 +1188,6 @@ func createUserWithPassword(installChroot *safechroot.Chroot, user configuration
|
|||
}
|
||||
logger.Log.Tracef("hashed password: %v", hashedPassword)
|
||||
|
||||
if strings.TrimSpace(hashedPassword) == "" {
|
||||
err = fmt.Errorf("empty password for user (%s) is not allowed", user.Name)
|
||||
return
|
||||
}
|
||||
|
||||
// Create the user with the given hashed password
|
||||
if user.Name == userutils.RootUser {
|
||||
if user.UID != "" {
|
||||
|
|
Загрузка…
Ссылка в новой задаче