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

Subscribe to our news:
Partners
Testimonials
David Lantz: "Thank you, this is by far the simplest, and most friendly utility for building db record system I have ever used. I wish I could get my systems guys at the office to purchase this for our company would be so very helpful and speed up a lot of work. I for one have used it for everything from a simple inventory record of my house, to a members record for my church just little pet projects and a test bed to test my own db builds and theories before having to hand code at the office..... it is a lot of fun to work with".
Rickey Steinke: "Folks, I wanted to drop a line and give you a fanatic thank you. I have a project due for my computer application course and without PHP Generator I never would have gotten it done with the professional results your product produced. My sincerest gratitude to each and every team member who brought this program to light".

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:

The following code accepts only passwords with 8 and more characters in length, including at least one upper case letter, one lower case letter, one number and one special character.

 

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

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

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

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

 

$result = 

  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