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

Subscribe to our news:
Partners
Testimonials
Olivier Auverlot: "At my work (a universitary computer research laboratory), I'm alone to create all applications and databases. I don't know how I could do all the work without it. It's really a very productive software. I can focus on the database schemas and create quickly the user applications with a minimal amount of code to maintain".
Simon Greener: "A lot of work went in to designing our application database. PHP Generator allowed us to build a fully functional, professional looking, and functionally powerful web application from that database. It has freed us from worrying about low level code, enabling us to focus on the business requirements of the customer. The support provided is excellent with staff quickly producing answers to questions ranging from newbie to simple or complex. I highly recommend the product".

More

Add your opinion

PostgreSQL PHP Generator 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