Spaces:
No application file
No application file
File size: 592 Bytes
d2897cd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
<?php
declare(strict_types=1);
namespace Mautic\UserBundle\Form\Validator\Constraints;
use Mautic\UserBundle\Model\PasswordStrengthEstimatorModel;
use Symfony\Component\Validator\Constraint;
final class NotWeak extends Constraint
{
public const TOO_WEAK = 'f61e730a-284e-11eb-adc1-0242ac120002';
protected static $errorNames = [
self::TOO_WEAK => 'PASSWORD_TOO_WEAK_ERROR',
];
public string $message = 'This password is too weak. Consider using a stronger password.';
public int $score = PasswordStrengthEstimatorModel::MINIMUM_PASSWORD_STRENGTH_ALLOWED;
}
|