Ver Mensaje Individual
  #8 (permalink)  
Antiguo 19/04/2016, 14:45
Avatar de hhs
hhs
Colaborador
 
Fecha de Ingreso: junio-2013
Ubicación: México
Mensajes: 2.995
Antigüedad: 10 años, 10 meses
Puntos: 379
Respuesta: Seguridad: Creando un login con tabla User

Para el asunto de los roles:
Código PHP:
Ver original
  1. public function getRoles()
  2.     {
  3.        return $this->roles->toArray();
  4.     }

Para redireccionar tienes que usar un handler; en este caso tienes que hacer una implementación del la interfaz AuthenticationSuccessHandlerInterface
https://github.com/symfony/symfony/b...rInterface.php
En este hilo se trato un poco el tema: http://www.forosdelweb.com/f181/aute...fony2-1145646/
__________________
Saludos
About me
Laraveles
A class should have only one reason to change.