summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2011-04-12 11:41:39 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2011-04-12 11:41:39 +0200
commit77dd608cc377cf77fc9c51d824fce36192346d2f (patch)
treea94c1032911b860f4ed84175dbbcd203f7ff265c
parent4347804a5b2b0377dc8b9a1ee5885e573b32eb85 (diff)
downloadsymfony-security-77dd608cc377cf77fc9c51d824fce36192346d2f.zip
symfony-security-77dd608cc377cf77fc9c51d824fce36192346d2f.tar.gz
symfony-security-77dd608cc377cf77fc9c51d824fce36192346d2f.tar.bz2
[Security] tweaked some exception messages
-rw-r--r--Core/Authentication/Provider/DaoAuthenticationProvider.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Core/Authentication/Provider/DaoAuthenticationProvider.php b/Core/Authentication/Provider/DaoAuthenticationProvider.php
index 21bec82..fa08955 100644
--- a/Core/Authentication/Provider/DaoAuthenticationProvider.php
+++ b/Core/Authentication/Provider/DaoAuthenticationProvider.php
@@ -59,11 +59,11 @@ class DaoAuthenticationProvider extends UserAuthenticationProvider
}
} else {
if (!$presentedPassword = $token->getCredentials()) {
- throw new BadCredentialsException('Bad credentials');
+ throw new BadCredentialsException('The presented password cannot be empty.');
}
if (!$this->encoderFactory->getEncoder($user)->isPasswordValid($user->getPassword(), $presentedPassword, $user->getSalt())) {
- throw new BadCredentialsException('Bad credentials');
+ throw new BadCredentialsException('The presented password is invalid.');
}
}
}