Use the newer scheb/2fa bundle instead of scheb/two_factor_bundle

Currently the U2F auth is broken, as there is no plugin supporting it in the new system
This commit is contained in:
Jan Böhmer 2022-08-13 23:33:05 +02:00
parent 8e58ad3441
commit 600119276c
14 changed files with 241 additions and 307 deletions

View file

@ -44,6 +44,7 @@ namespace App\Validator\Constraints;
use App\Entity\UserSystem\User;
use Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Google\GoogleAuthenticator;
use Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Google\GoogleAuthenticatorInterface;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;
@ -54,7 +55,7 @@ class ValidGoogleAuthCodeValidator extends ConstraintValidator
{
protected $googleAuthenticator;
public function __construct(GoogleAuthenticator $googleAuthenticator)
public function __construct(GoogleAuthenticatorInterface $googleAuthenticator)
{
$this->googleAuthenticator = $googleAuthenticator;
}