Skip to content

Instantly share code, notes, and snippets.

View karser's full-sized avatar

Dmitrii Poddubnyi karser

View GitHub Profile
@karser
karser / LoginSubcriber.php
Created July 23, 2020 10:09 — forked from nuryagdym/LoginSubcriber.php
Symfony 4.4 google captcha integration to login form using KarserRecaptcha3Bundle
<?php
namespace App\EventSubscriber;
use App\Form\LoginType;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface;
use Symfony\Component\HttpKernel\Event\RequestEvent;