Fix CMS login and restore PAGEPAN feature icons
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Content;
|
||||
|
||||
final class Passwords
|
||||
{
|
||||
public const MIN_LENGTH = 8;
|
||||
|
||||
public static function isSupported(string $password): bool
|
||||
{
|
||||
return strlen($password) <= 72 && !str_contains($password, "\0") && mb_check_encoding($password, 'UTF-8');
|
||||
}
|
||||
|
||||
public static function isValidNew(string $password): bool
|
||||
{
|
||||
return self::isSupported($password) && mb_strlen($password, 'UTF-8') >= self::MIN_LENGTH;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user