symfony/symfony — pull request #6099 by nmariani (2012-11-23 09:54:32+00:00)
Title: Handling UsernameNotFoundException when trying to check user

UserChecker checkPreAuth, checkAuthentication and checkPostAuth methods can throw a UsernameNotFoundException instead of a generic BadCredentialsException.

Currently catching a BadCredentialsException to throw another BadCredentialsException.

Seems to have to catch a UsernameNotFoundException instead and then depending on the security parameter throw a BadCredentialsException.