-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add OneTimetokenAuthenticator as part of the magic link feature #97
base: 10.next-cake5
Are you sure you want to change the base?
Conversation
e3a387f
to
3d1d4ba
Compare
3d1d4ba
to
272ba5e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please also correct the phpstan related issues
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: ['8.1', '8.2'] | ||
php-version: ['8.2', '8.3', '8.4'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to keep 8.1 as cakephp 5 is >=8.1
@@ -26,18 +26,19 @@ | |||
"source": "https://github.com/CakeDC/auth" | |||
}, | |||
"require": { | |||
"php": ">=8.1.0", | |||
"php": ">=8.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep 8.1 for max compatibility with the related cakephp version 5
|
||
$usersTable = TableRegistry::getTableLocator()->get(Configure::read('Users.table')); | ||
|
||
$user = $usersTable->loginWithToken($token); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we'll need to define an interface, then check it's implemented by the table, or check the method exists
@@ -32,7 +32,7 @@ class InvalidProviderException extends CakeException | |||
* @param int $code code | |||
* @param null $previous previous | |||
*/ | |||
public function __construct(array|string $message, int $code = 500, $previous = null) | |||
public function __construct(array|string $message, int $code = 500, null $previous = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo?
@@ -32,7 +32,7 @@ class InvalidSettingsException extends CakeException | |||
* @param int $code code | |||
* @param null $previous previous | |||
*/ | |||
public function __construct(array|string $message, int $code = 500, $previous = null) | |||
public function __construct(array|string $message, int $code = 500, null $previous = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo?
No description provided.