public function authenticate(Request $request): PassportInterface | public function authenticate(Request $request): PassportInterface | ||||
{ | { | ||||
$email = $request->request->get('email'); | |||||
$email = trim($request->request->get('email')); | |||||
$password = $request->request->get('password'); | $password = $request->request->get('password'); | ||||
$csrfToken = $request->request->get('_csrf_token'); | $csrfToken = $request->request->get('_csrf_token'); | ||||
trait ControllerTrait | trait ControllerTrait | ||||
{ | { | ||||
public static function getSubscribedServices(): array | |||||
public static function getSubscribedServices() | |||||
{ | { | ||||
return array_merge( | return array_merge( | ||||
parent::getSubscribedServices(), | parent::getSubscribedServices(), |