mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-26 11:19:14 +02:00
29 lines
523 B
PHP
29 lines
523 B
PHP
<?php
|
|
/* Icinga Web 2 | (c) 2025 Icinga GmbH | GPLv2+ */
|
|
|
|
namespace Icinga\Application\ProvidedHook;
|
|
|
|
use Icinga\Application\Hook\PasswordPolicyHook;
|
|
|
|
/**
|
|
* None Password Policy to validate all passwords
|
|
*/
|
|
class NonePasswordPolicy implements PasswordPolicyHook
|
|
{
|
|
public function getName(): string
|
|
{
|
|
return 'None';
|
|
}
|
|
|
|
public function displayPasswordPolicy(): string
|
|
{
|
|
return '';
|
|
|
|
}
|
|
|
|
public function validatePassword(string $password): ?array
|
|
{
|
|
return null;
|
|
}
|
|
}
|