10000 Update refresh method to test against ldap user · symfony/symfony@7de44eb · GitHub
[go: up one dir, main page]

Skip to content

Commit 7de44eb

Browse files
committed
Update refresh method to test against ldap user
1 parent b681e93 commit 7de44eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Ldap/Security/LdapUserProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function refreshUser(UserInterface $user)
108108
throw new Unsupported 6165 UserException(sprintf('Instances of "%s" are not supported.', \get_class($user)));
109109
}
110110

111-
return new LdapUser($user->getEntry(), $user->getUsername(), $user->getPassword(), $user->getRoles());
111+
return $this->loadUserByUsername($user->getUsername());
112112
}
113113

114114
/**

0 commit comments

Comments
 (0)
0