Skip to content
Snippets Groups Projects
Commit 1e340c04 authored by Torben Hansen's avatar Torben Hansen Committed by Christian Kuhn
Browse files

[DOCS] Fix BeforeRequestTokenProcessedEvent code example

The code example for the `BeforeRequestTokenProcessedEvent`
event listener implementation contains an error, since the
request token scope is checked for lower cased `loginType`
in `AbstractUserAuthentication`.

This change fixes the code example.

Resolves: #102899
Releases: main, 12.4
Change-Id: I5582b916b9399eb90672edf3f06a59d84e3bdef0
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/82613


Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent a8bde286
No related merge requests found
......@@ -167,7 +167,7 @@ can be used to generate the token individually.
// validate individual requirements/checks
// ...
$event->setRequestToken(
RequestToken::create('core/user-auth/' . $user->loginType)
RequestToken::create('core/user-auth/' . strtolower($user->loginType))
);
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment