Skip to content

Commit af72c5d

Browse files
committed
Fix up TokenLink.
1 parent 616aec4 commit af72c5d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/Authentication/LoginLink.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ $service->loadAuthenticator('Tools.LoginLink', [
3030
'plugin' => false,
3131
'controller' => 'Account',
3232
'action' => 'login',
33-
),
33+
],
34+
'urlChecker' => 'Authentication.CakeRouter',
3435
]);
3536
```
3637

src/Authenticator/LoginLinkAuthenticator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class LoginLinkAuthenticator extends AbstractAuthenticator {
1515
* @var array<string, mixed>
1616
*/
1717
protected array $_defaultConfig = [
18+
'urlChecker' => null, // e.g. 'Authentication.CakeRouter',
1819
'loginUrl' => null,
1920
'oneTime' => true,
2021
'queryString' => 'token',

0 commit comments

Comments
 (0)