SilverStripe\TOTP\RegisterHandler::register
Validate the provided TOTP code and return the TOTP secret to be stored against the RegisteredMethod model.
Will throw an exception if the code is invalid.
Signature
public function register(HTTPRequest
$request,
StoreInterface
$store )
Parameters
$request
— SilverStripe\Control\HTTPRequest
$store
— SilverStripe\MFA\Store\StoreInterface
Returns
- Result