NoraLib Validation API Documentation

PasswordStrengthRule extends AbstractRule
in package

Table of Contents

Constants

SPECIAL  = '@!#$%^&*(),.?":{}|<>'

Properties

$complexity  : int
$min  : int
$special  : string
$message  : string

Methods

__construct()  : mixed
assert()  : void
validate()  : bool
raiseError()  : RuleExceptionInterface

Constants

Properties

$message

protected string $message = <<<TEXT パスワードは{{min}}文字以上で 大文字、小文字、数字、特殊文字({{special}}) いずれかを{{complexity}}種類以上使って入力してください。 'password', '123456'など推測されやすい文言は使えません。 TEXT

Methods

__construct()

public __construct([int $min = 8 ][, int $complexity = 3 ][, string $special = self::SPECIAL ][, string $message = << ]) : mixed
Parameters
$min : int = 8
$complexity : int = 3
$special : string = self::SPECIAL
$message : string = <<

assert()

public assert(mixed $value) : void
Parameters
$value : mixed
Tags
throws
Throwable

validate()

public validate(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

        
On this page

Search results