Compare commits
1 Commits
main
..
73917d873f
| Author | SHA1 | Date | |
|---|---|---|---|
| 73917d873f |
Generated
+7
-7
@@ -589,16 +589,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/phpunit",
|
"name": "phpunit/phpunit",
|
||||||
"version": "12.5.31",
|
"version": "12.5.32",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
||||||
"reference": "0608d157a284f15cc73b99a3327eff06b66a176d"
|
"reference": "c02591dd7840ed124a98d7770753329ad28e9f8f"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/0608d157a284f15cc73b99a3327eff06b66a176d",
|
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c02591dd7840ed124a98d7770753329ad28e9f8f",
|
||||||
"reference": "0608d157a284f15cc73b99a3327eff06b66a176d",
|
"reference": "c02591dd7840ed124a98d7770753329ad28e9f8f",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -667,7 +667,7 @@
|
|||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
||||||
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
|
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
|
||||||
"source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.31"
|
"source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.32"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -675,7 +675,7 @@
|
|||||||
"type": "other"
|
"type": "other"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2026-07-06T14:54:16+00:00"
|
"time": "2026-07-25T06:54:13+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "sebastian/cli-parser",
|
"name": "sebastian/cli-parser",
|
||||||
@@ -1698,5 +1698,5 @@
|
|||||||
"php": ">=8.3"
|
"php": ">=8.3"
|
||||||
},
|
},
|
||||||
"platform-dev": {},
|
"platform-dev": {},
|
||||||
"plugin-api-version": "2.6.0"
|
"plugin-api-version": "2.9.0"
|
||||||
}
|
}
|
||||||
|
|||||||
+20
-11
@@ -5,9 +5,8 @@ declare(strict_types=1);
|
|||||||
namespace KTXM\AuthenticationProviderPassword;
|
namespace KTXM\AuthenticationProviderPassword;
|
||||||
|
|
||||||
use KTXC\Resource\ProviderManager;
|
use KTXC\Resource\ProviderManager;
|
||||||
use KTXF\Module\Configuration\BrowserModuleContextInterface;
|
use KTXF\Module\ModuleBrowserInterface;
|
||||||
use KTXF\Module\Configuration\ConsoleModuleContextInterface;
|
use KTXF\Module\ModuleConsoleInterface;
|
||||||
use KTXF\Module\Configuration\ModuleContextInterface;
|
|
||||||
use KTXF\Module\ModuleInstanceAbstract;
|
use KTXF\Module\ModuleInstanceAbstract;
|
||||||
use KTXM\AuthenticationProviderPassword\Console\UserPasswordCommand;
|
use KTXM\AuthenticationProviderPassword\Console\UserPasswordCommand;
|
||||||
|
|
||||||
@@ -15,7 +14,7 @@ use KTXM\AuthenticationProviderPassword\Console\UserPasswordCommand;
|
|||||||
* Default Identity Provider Module
|
* Default Identity Provider Module
|
||||||
* Provides local database authentication
|
* Provides local database authentication
|
||||||
*/
|
*/
|
||||||
class Module extends ModuleInstanceAbstract
|
class Module extends ModuleInstanceAbstract implements ModuleConsoleInterface, ModuleBrowserInterface
|
||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private readonly ProviderManager $providerManager,
|
private readonly ProviderManager $providerManager,
|
||||||
@@ -72,13 +71,23 @@ class Module extends ModuleInstanceAbstract
|
|||||||
$this->providerManager->register('authentication', 'password', Provider::class);
|
$this->providerManager->register('authentication', 'password', Provider::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function configure(ModuleContextInterface $context): void
|
public function registerCI(): array
|
||||||
{
|
{
|
||||||
if ($context instanceof BrowserModuleContextInterface) {
|
return [
|
||||||
$context->registerModule($this, 'AuthenticationProviderPassword', 'static/module.mjs');
|
UserPasswordCommand::class,
|
||||||
}
|
];
|
||||||
if ($context instanceof ConsoleModuleContextInterface) {
|
}
|
||||||
$context->registerCommand(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',
|
||||||
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ const saveChanges = async () => {
|
|||||||
label="Current Password"
|
label="Current Password"
|
||||||
placeholder="············"
|
placeholder="············"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
autocomplete="new-password"
|
autocomplete="off"
|
||||||
@click:append-inner="isCurrentPasswordVisible = !isCurrentPasswordVisible"
|
@click:append-inner="isCurrentPasswordVisible = !isCurrentPasswordVisible"
|
||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
@@ -150,7 +150,7 @@ const saveChanges = async () => {
|
|||||||
label="New Password"
|
label="New Password"
|
||||||
placeholder="············"
|
placeholder="············"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
autocomplete="new-password"
|
autocomplete="suppress"
|
||||||
@click:append-inner="isNewPasswordVisible = !isNewPasswordVisible"
|
@click:append-inner="isNewPasswordVisible = !isNewPasswordVisible"
|
||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
@@ -164,7 +164,7 @@ const saveChanges = async () => {
|
|||||||
label="Confirm New Password"
|
label="Confirm New Password"
|
||||||
placeholder="············"
|
placeholder="············"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
autocomplete="new-password"
|
autocomplete="suppress"
|
||||||
:error="confirmPassword.length > 0 && confirmPassword !== newPassword"
|
:error="confirmPassword.length > 0 && confirmPassword !== newPassword"
|
||||||
:error-messages="confirmPassword.length > 0 && confirmPassword !== newPassword ? ['Passwords do not match'] : []"
|
:error-messages="confirmPassword.length > 0 && confirmPassword !== newPassword ? ['Passwords do not match'] : []"
|
||||||
@click:append-inner="isConfirmPasswordVisible = !isConfirmPasswordVisible"
|
@click:append-inner="isConfirmPasswordVisible = !isConfirmPasswordVisible"
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ abstract class IntegrationTestCase extends TestCase
|
|||||||
// process-level error handler after the in-process request.
|
// process-level error handler after the in-process request.
|
||||||
$application = static::buildApplication();
|
$application = static::buildApplication();
|
||||||
try {
|
try {
|
||||||
$response = $application->runHttpRequest($request);
|
$response = $application->handleHttp($request);
|
||||||
} finally {
|
} finally {
|
||||||
$application->shutdown();
|
$application->shutdown();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user