Skip to content

Commit 926baa7

Browse files
!!![TASK] Compatibility with Neos 5.1
Makes the `matchRequest`-method compatible to Neos 5.1 and sets the new flow-Version.
1 parent e9aa38c commit 926baa7

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

Classes/Security/RequestPattern/ExcludeTwoFactorAuthenticationSetup.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Yeebase\TwoFactorAuthentication\Security\RequestPattern;
44

55
use Neos\Flow\Mvc\ActionRequest;
6-
use Neos\Flow\Mvc\RequestInterface;
76
use Neos\Flow\Security\RequestPatternInterface;
87
use Neos\Flow\Annotations as Flow;
98

@@ -19,7 +18,7 @@ final class ExcludeTwoFactorAuthenticationSetup implements RequestPatternInterfa
1918
*/
2019
protected $setupRoute;
2120

22-
public function matchRequest(RequestInterface $request): bool
21+
public function matchRequest(ActionRequest $request): bool
2322
{
2423
if (!$request instanceof ActionRequest) {
2524
return true;

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Two-Factor-Authentication (2FA) for Neos Flow",
55
"license": "MIT",
66
"require": {
7-
"neos/flow": "^5.3",
7+
"neos/flow": "^6.0",
88
"pragmarx/google2fa": "^4.0",
99
"bacon/bacon-qr-code": "^2.0"
1010
},

0 commit comments

Comments
 (0)