Choose your database:
AnySQL
MySQL
MS SQL Server
PostgreSQL
SQLite
Firebird
Oracle
SQL Anywhere
DB2
MaxDB

Subscribe to our news:
Partners
Testimonials
Craig Cordell: "The simplicity of your code generator is fantastic. We've evaluated dozens of others over the past few years but have yet to find one that is as easy to use as yours".
Steven Langfield: "I wanted to drop you a mail to say how freaking AMAZING your software is. It will be the best £100 I have ever spent. I have still to read all your documentation to take full advantage but what you have created is truly amazing".

More

Add your opinion

PHP Generator for MySQL online Help

Prev Return to chapter overview Next

OnVerifyPasswordStrength

This event allows you to verify an entered password. The password is accepted only when it meets specified complexity requirements.

 

Signature:

function OnVerifyPasswordStrength ($password, &$result, &$passwordRuleMessage)

 

Parameters:

$password

The entered password.

$result

It must be set to true if entered password meets complexity requirements or to false otherwise.

$passwordRuleMessage

The message to be displayed if entered password does not meet complexity requirements

 

Example:

function OnVerifyPasswordStrength($password, &$acceptPassword, &$passwordRuleMessage)

{

  $atleastOneUppercaseRule   = preg_match('@[A-Z]@', $password);

  $atleastOneLowercaseRule   = preg_match('@[a-z]@', $password);

  $atleastOneNumberRule      = preg_match('@[0-9]@', $password);

  $atleastOneSpecialCharRule = preg_match('@[^\w]@', $password);

 

  $acceptPassword = 

    strlen($password) >= 8 &&

    $atleastOneUppercaseRule &&

    $atleastOneLowercaseRule &&

    $atleastOneNumberRule &&

    $atleastOneSpecialCharRule;

 

  $passwordRuleMessage = 

    'Password must be at least 8 characters in length ' . 

    'and must include at least one upper case letter, ' . 

    'one lower case letter, one number, and one special character.';

}



Prev Return to chapter overview Next