Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0ad48f9767 | |||
| b2fc6f7d36 | |||
| 9fea6504c6 | |||
| e391ff6915 |
+1
-1
@@ -11,7 +11,7 @@
|
|||||||
"php": ">=8.3"
|
"php": ">=8.3"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^13.0"
|
"phpunit/phpunit": "^12.0"
|
||||||
},
|
},
|
||||||
"autoload-dev": {
|
"autoload-dev": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
|||||||
Generated
+210
-436
File diff suppressed because it is too large
Load Diff
+11
-20
@@ -5,8 +5,9 @@ declare(strict_types=1);
|
|||||||
namespace KTXM\AuthenticationProviderPassword;
|
namespace KTXM\AuthenticationProviderPassword;
|
||||||
|
|
||||||
use KTXC\Resource\ProviderManager;
|
use KTXC\Resource\ProviderManager;
|
||||||
use KTXF\Module\ModuleBrowserInterface;
|
use KTXF\Module\Configuration\BrowserModuleContextInterface;
|
||||||
use KTXF\Module\ModuleConsoleInterface;
|
use KTXF\Module\Configuration\ConsoleModuleContextInterface;
|
||||||
|
use KTXF\Module\Configuration\ModuleContextInterface;
|
||||||
use KTXF\Module\ModuleInstanceAbstract;
|
use KTXF\Module\ModuleInstanceAbstract;
|
||||||
use KTXM\AuthenticationProviderPassword\Console\UserPasswordCommand;
|
use KTXM\AuthenticationProviderPassword\Console\UserPasswordCommand;
|
||||||
|
|
||||||
@@ -14,7 +15,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 implements ModuleConsoleInterface, ModuleBrowserInterface
|
class Module extends ModuleInstanceAbstract
|
||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private readonly ProviderManager $providerManager,
|
private readonly ProviderManager $providerManager,
|
||||||
@@ -71,23 +72,13 @@ class Module extends ModuleInstanceAbstract implements ModuleConsoleInterface, M
|
|||||||
$this->providerManager->register('authentication', 'password', Provider::class);
|
$this->providerManager->register('authentication', 'password', Provider::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function registerCI(): array
|
public function configure(ModuleContextInterface $context): void
|
||||||
{
|
{
|
||||||
return [
|
if ($context instanceof BrowserModuleContextInterface) {
|
||||||
UserPasswordCommand::class,
|
$context->registerModule($this, 'AuthenticationProviderPassword', 'static/module.mjs');
|
||||||
];
|
}
|
||||||
}
|
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="off"
|
autocomplete="new-password"
|
||||||
@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="suppress"
|
autocomplete="new-password"
|
||||||
@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="suppress"
|
autocomplete="new-password"
|
||||||
: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->handleHttp($request);
|
$response = $application->runHttpRequest($request);
|
||||||
} finally {
|
} finally {
|
||||||
$application->shutdown();
|
$application->shutdown();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user