php - FOSUserBundle - BadCredentialsException -
i utilize fosuserbundle provide user authorization , registration. works fine, when seek log in using non-existing username, error:
exception 'symfony\component\security\core\exception\badcredentialsexception' message 'bad credentials' in /var/www/ontheway/vendor/symfony/symfony/src/symfony/component/security/core/authentication/provider/userauthenticationprovider.php:73 stack trace: #0 /var/www/ontheway/app/cache/dev/classes.php(120): session_start() #1 /var/www/ontheway/app/cache/dev/classes.php(198): symfony\component\httpfoundation\session\storage\nativesessionstorage->start() #2 /var/www/ontheway/app/cache/dev/classes.php(498): symfony\component\httpfoundation\session\storage\nativesessionstorage->getbag('attributes')
i've tried finding solution, didn't results.
from github changelog:
[bc break] fosuserbundle:security:login.html.twig template receives authenticationexception in error variable rather error message.
to prepare issue, need update custom login template login.html.twig
:
from:
{% if error %} ... {{ error|trans }} ... {% endif %}
to:
{% if error %} ... {{ error.messagekey|trans(error.messagedata, 'security') }} ... {% endif %}
php symfony2 fosuserbundle
No comments:
Post a Comment