PasswordTester


Check if a password fits the configured rule requirements for password complexity. It is also able to explain why the password failed to be good enough.

Usage:


Use the New(Atlantis\Engine) factory method to get a fresh tool instance automatically configured to the framework's settings.

<?php $Checker = Atlantis\Systems\PasswordTester\Tool::New($App);

The IsOK(string) method will return if the provided string is good enough to be used as a password. If not, GetDescription() will explain in words why it failed.

<?php $Password = $this->Data->Get('Pass1'); $Checker = Atlantis\Systems\PasswordTester\Tool::New($App); if(!$Checker->IsOK($Password)) throw new Exception($Checker->GetDescription());

Application Settings


Atlantis\Key::ConfPassMinLen

int = 10

Atlantis\Key::ConfPassReqAlphaLower

bool = TRUE

Atlantis\Key::ConfPassReqAlphaUpper

bool = TRUE

Atlantis\Key::ConfPassReqNumeric

bool = TRUE

Atlantis\Key::ConfPassReqSpecial

bool = TRUE