Changeset 32464
- Timestamp:
- 04/12/11 11:45:04 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.0/src/Symfony/Component/Security/Core/Authentication/Provider/DaoAuthenticationProvider.php
r32220 r32464 60 60 } else { 61 61 if (!$presentedPassword = $token->getCredentials()) { 62 throw new BadCredentialsException(' Bad credentials');62 throw new BadCredentialsException('The presented password cannot be empty.'); 63 63 } 64 64 65 65 if (!$this->encoderFactory->getEncoder($user)->isPasswordValid($user->getPassword(), $presentedPassword, $user->getSalt())) { 66 throw new BadCredentialsException(' Bad credentials');66 throw new BadCredentialsException('The presented password is invalid.'); 67 67 } 68 68 }