for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SilverStripe\MFA\Tests\Stub\BasicMath;
use SilverStripe\Dev\TestOnly;
use SilverStripe\MFA\Method\Handler\LoginHandlerInterface;
use SilverStripe\MFA\Method\Handler\RegisterHandlerInterface;
use SilverStripe\MFA\Method\MethodInterface;
class Method implements MethodInterface, TestOnly
{
/**
* Get a URL segment for this method. This will be used in URL paths for performing authentication by this method
*
* @return string
*/
public function getURLSegment()
return 'basic-math';
}
* Return the LoginHandler that is used to start and verify login attempts with this method
* @return LoginHandlerInterface
public function getLoginHandler()
return new MethodLoginHandler();
* Return the RegisterHandler that is used to perform registrations with this method
* @return RegisterHandlerInterface
public function getRegisterHandler()
return new MethodRegisterHandler();