1 Commits

Author SHA1 Message Date
Sebastian 932fc8d094 chore(deps): update dependency phpunit/phpunit to v13
Build Test / test (pull_request) Successful in 35s
JS Unit Tests / test (pull_request) Successful in 30s
PHP Integration Tests / Integration Tests (pull_request) Failing after 1m32s
PHP Unit Tests / test (pull_request) Successful in 1m49s
2026-07-28 03:04:39 +00:00
5 changed files with 464 additions and 229 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
"php": ">=8.3"
},
"require-dev": {
"phpunit/phpunit": "^12.0"
"phpunit/phpunit": "^13.0"
},
"autoload-dev": {
"psr-4": {
Generated
+439 -213
View File
File diff suppressed because it is too large Load Diff
+20 -11
View File
@@ -5,9 +5,8 @@ declare(strict_types=1);
namespace KTXM\AuthenticationProviderPassword;
use KTXC\Resource\ProviderManager;
use KTXF\Module\Configuration\BrowserModuleContextInterface;
use KTXF\Module\Configuration\ConsoleModuleContextInterface;
use KTXF\Module\Configuration\ModuleContextInterface;
use KTXF\Module\ModuleBrowserInterface;
use KTXF\Module\ModuleConsoleInterface;
use KTXF\Module\ModuleInstanceAbstract;
use KTXM\AuthenticationProviderPassword\Console\UserPasswordCommand;
@@ -15,7 +14,7 @@ use KTXM\AuthenticationProviderPassword\Console\UserPasswordCommand;
* Default Identity Provider Module
* Provides local database authentication
*/
class Module extends ModuleInstanceAbstract
class Module extends ModuleInstanceAbstract implements ModuleConsoleInterface, ModuleBrowserInterface
{
public function __construct(
private readonly ProviderManager $providerManager,
@@ -72,13 +71,23 @@ class Module extends ModuleInstanceAbstract
$this->providerManager->register('authentication', 'password', Provider::class);
}
public function configure(ModuleContextInterface $context): void
public function registerCI(): array
{
if ($context instanceof BrowserModuleContextInterface) {
$context->registerModule($this, 'AuthenticationProviderPassword', 'static/module.mjs');
}
if ($context instanceof ConsoleModuleContextInterface) {
$context->registerCommand(UserPasswordCommand::class);
}
return [
UserPasswordCommand::class,
];
}
public function registerBI(): array
{
return [
'handle' => $this->handle(),
'namespace' => 'AuthenticationProviderPassword',
'version' => $this->version(),
'label' => $this->label(),
'author' => $this->author(),
'description' => $this->description(),
'boot' => 'static/module.mjs',
];
}
}
+3 -3
View File
@@ -133,7 +133,7 @@ const saveChanges = async () => {
label="Current Password"
placeholder="············"
variant="outlined"
autocomplete="new-password"
autocomplete="off"
@click:append-inner="isCurrentPasswordVisible = !isCurrentPasswordVisible"
/>
</VCol>
@@ -150,7 +150,7 @@ const saveChanges = async () => {
label="New Password"
placeholder="············"
variant="outlined"
autocomplete="new-password"
autocomplete="suppress"
@click:append-inner="isNewPasswordVisible = !isNewPasswordVisible"
/>
</VCol>
@@ -164,7 +164,7 @@ const saveChanges = async () => {
label="Confirm New Password"
placeholder="············"
variant="outlined"
autocomplete="new-password"
autocomplete="suppress"
:error="confirmPassword.length > 0 && confirmPassword !== newPassword"
:error-messages="confirmPassword.length > 0 && confirmPassword !== newPassword ? ['Passwords do not match'] : []"
@click:append-inner="isConfirmPasswordVisible = !isConfirmPasswordVisible"
@@ -177,7 +177,7 @@ abstract class IntegrationTestCase extends TestCase
// process-level error handler after the in-process request.
$application = static::buildApplication();
try {
$response = $application->runHttpRequest($request);
$response = $application->handleHttp($request);
} finally {
$application->shutdown();
}