From ff89e162e1216c717be81bead75a1e147e48c3a9 Mon Sep 17 00:00:00 2001 From: Anian Weber Date: Mon, 8 Aug 2022 17:55:16 +0200 Subject: [PATCH 1/3] Fix templatePathAndFilename in Readme Fix the path for `templatePathAndFilename` to be the same as the the original template. The original template is located under `.../Authentication/Index.html` and **not** under `.../Authenticate/Index.html`, so as you copy the original template into your own package one might miss the difference (as I have done). --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 61ca9b8..9505e77 100755 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ add the following configuration there: - requestFilter: 'isPackage("Flowpack.Neos.FrontendLogin") && isController("Authentication") && isAction("index")' options: - templatePathAndFilename: 'resource://Acme.YourPackage/Private/Templates/Authenticate/Index.html' + templatePathAndFilename: 'resource://Acme.YourPackage/Private/Templates/Authentication/Index.html' ``` Adjust the actual value in ``templatePathAndFilename`` to your needs and copy the [original template](Resources/Private/Templates/Authentication/Index.html) From 31b809229037283130b34c1a2e825f56a08e2b56 Mon Sep 17 00:00:00 2001 From: Anian Weber Date: Tue, 23 Aug 2022 19:58:13 +0200 Subject: [PATCH 2/3] Fix requestFilter in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9505e77..7a4b4dc 100755 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ add the following configuration there: ```yaml - - requestFilter: 'isPackage("Flowpack.Neos.FrontendLogin") && isController("Authentication") && isAction("index")' + requestFilter: 'parentRequest.isPackage("Neos.Neos") && isFormat("html") && isPackage("Flowpack.Neos.FrontendLogin")' options: templatePathAndFilename: 'resource://Acme.YourPackage/Private/Templates/Authentication/Index.html' ``` From d25d6e9698f4632b738afd847ea9bafce041e665 Mon Sep 17 00:00:00 2001 From: Anian Weber Date: Tue, 23 Aug 2022 20:21:32 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a4b4dc..6d86ce3 100755 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ add the following configuration there: ```yaml - - requestFilter: 'parentRequest.isPackage("Neos.Neos") && isFormat("html") && isPackage("Flowpack.Neos.FrontendLogin")' + requestFilter: 'parentRequest.isPackage("Neos.Neos") && isFormat("html") && isPackage("Flowpack.Neos.FrontendLogin") && isController("Authentication")' options: templatePathAndFilename: 'resource://Acme.YourPackage/Private/Templates/Authentication/Index.html' ```