Source of file MFAAuthenticator.php
Size: 0,908 Bytes - Last Modified: 2021-12-24T06:47:21+00:00
/var/www/docs.ssmods.com/process/src/src/Interfaces/MFAAuthenticator.php
12345678910111213141516171819202122232425262728293031323334353637383940 | <?php namespace Firesphere\BootstrapMFA\Interfaces; use Firesphere\BootstrapMFA\Forms\BootstrapMFALoginForm; use Firesphere\BootstrapMFA\Handlers\BootstrapMFALoginHandler; use SilverStripe\Control\HTTPRequest; use SilverStripe\ORM\ValidationResult; interface MFAAuthenticator { /** * Get the MFA form * * @param BootstrapMFALoginHandler $controller * @param string $name * @return BootstrapMFALoginForm */ public function getMFAForm($controller, $name); /** * Verify the MFA code * * @param array $data * @param HTTPRequest $request * @param string $token * @param ValidationResult $result * @return mixed */ public function verifyMFA($data, $request, $token, $result); /** * Required to find the token field for the authenticator * * @return string */ public function getTokenField(); } |