PHP Интерфейс Scheb\TwoFactorBundle\Security\TwoFactor\Provider\TwoFactorProviderInterface

Показать файл Открыть проект

Открытые методы

Метод Описание
beginAuthentication ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) : boolean Return true when two-factor authentication process should be started.
requestAuthenticationCode ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) : Response | null Ask for two-factor authentication code.

Описание методов

beginAuthentication() публичный Метод

Return true when two-factor authentication process should be started.
public beginAuthentication ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) : boolean
$context Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface
Результат boolean

requestAuthenticationCode() публичный Метод

Providers can create a response or ignore the request by returning null.
public requestAuthenticationCode ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) : Response | null
$context Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface
Результат Symfony\Component\HttpFoundation\Response | null