The error message: [User Warning] Authenticator "default" doesn't support tabbed forms is given if any nonexistent /Security/login action is attempted. Sometimes the $results inside of Security's delegateToMultipleHandlers method are HTTPResponses, and returning these gives a more helpful error message.
Example:
protected function delegateToMultipleHandlers(array $handlers, $title, array $templates, callable $aggregator)
{
...
// Process each of the handlers
$results = array_map(
function (RequestHandler $handler) {
return $handler->handleRequest($this->getRequest());
},
$handlers
);
// Loop through results, return any HTTPResponse
foreach ($results as $result) {
if ($result instanceof HTTPResponse) {
return $result; // Gives "Action 'asdf' isn't available on class SilverStripe\MFA\Authenticator\LoginHandler."
}
}
Affected Version
4.x
Description
The error message:
[User Warning] Authenticator "default" doesn't support tabbed forms
is given if any nonexistent /Security/login action is attempted. Sometimes the$results
inside of Security'sdelegateToMultipleHandlers
method are HTTPResponses, and returning these gives a more helpful error message.Example:
Steps to Reproduce
Go to /Security/login/asdf