This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Core\UserBundle\Repository; | |
| use Doctrine\ORM\EntityRepository; | |
| use Symfony\Component\Security\Core\Exception\UnsupportedUserException; | |
| use Symfony\Component\Security\Core\Exception\UsernameNotFoundException; | |
| use Symfony\Component\Security\Core\User\UserInterface; | |
| use Symfony\Component\Security\Core\User\UserProviderInterface; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [2015-12-17 10:26:50] doctrine.DEBUG: SELECT c0_.uid AS uid_0, c0_.deleted AS deleted_1, c0_.deleted_at AS deleted_at_2, c0_.created_at AS created_at_3, c0_.updated_at AS updated_at_4, c0_.username AS username_5, c0_.username_canonical AS username_canonical_6, c0_.email AS email_7, c0_.email_canonical AS email_canonical_8, c0_.password AS password_9, c0_.salt AS salt_10, c0_.enabled AS enabled_11, c0_.locked AS locked_12, c0_.confirmation_token AS confirmation_token_13, c0_.password_requested_at AS password_requested_at_14, c0_.last_login AS last_login_15, c0_.roles AS roles_16 FROM core_user_user c0_ WHERE c0_.username = ? OR c0_.email = ? ["NONE_PROVIDED","NONE_PROVIDED"] [] | |
| [2015-12-17 10:26:50] security.INFO: Authentication request failed. {"exception":"[object] (Symfony\\Component\\Security\\Core\\Exception\\BadCredentialsException(code: 0): Bad credentials. at /home/gabriel/Projets/ASI/Code/asi-symfony/vendor/symfony/symfony/src/Symfony/Component/Security/Core/Authentication/Provider/UserAuthenticationP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Core\UserBundle\Controller; | |
| use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Symfony\Component\Security\Core\Exception\AuthenticationException; | |
| use Symfony\Component\Security\Core\Security; | |
| /** | |
| * Class SecurityController |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% extends '::base.html.twig' %} | |
| {% block body %} | |
| {% if error %} | |
| <div>{{ error.messageKey|trans(error.messageData, 'security') }}</div> | |
| {% endif %} | |
| <form action="{{ path('login_check') }}" method="post"> | |
| <label for="username">Username:</label> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # To get started with security, check out the documentation: | |
| # http://symfony.com/doc/current/book/security.html | |
| security: | |
| # http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers | |
| providers: | |
| main_user_provider: | |
| entity: | |
| class: CoreUserBundle:User | |
| #user_provider: |
NewerOlder