mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 01:49:05 +02:00
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:
parent
8e58ad3441
commit
600119276c
14 changed files with 241 additions and 307 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue