Skip to content

Commit 39557e2

Browse files
author
Robin Chalas
committed
fix merge
1 parent 1b1ed67 commit 39557e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/InMemoryFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function create(ContainerBuilder $container, $id, $config)
3131
$users = array();
3232

3333
foreach ($config['users'] as $username => $user) {
34-
$users[$username] = array('password' => (string) $user['password'], 'roles' => $user['roles']);
34+
$users[$username] = array('password' => null !== $user['password'] ? (string) $user['password'] : $defaultPassword, 'roles' => $user['roles']);
3535
}
3636

3737
$definition->addArgument($users);

0 commit comments

Comments
 (0)