Development

Changeset 32464

You must first sign up to be able to contribute.

Changeset 32464

Show
Ignore:
Timestamp:
04/12/11 11:45:04 (3 years ago)
Author:
fabien
Message:

Merge branch 'master' of git://github.com/symfony/symfony

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.0/src/Symfony/Component/Security/Core/Authentication/Provider/DaoAuthenticationProvider.php

    r32220 r32464  
    6060        } else { 
    6161            if (!$presentedPassword = $token->getCredentials()) { 
    62                 throw new BadCredentialsException('Bad credentials'); 
     62                throw new BadCredentialsException('The presented password cannot be empty.'); 
    6363            } 
    6464 
    6565            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.'); 
    6767            } 
    6868        }