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".
Anley Lafleur: "I cannot wait to start using your exciting product and I am sure it will help me achieve my objectives".

More

Add your opinion

PostgreSQL PHP Generator online Help

Prev Return to chapter overview Next

OnPasswordResetRequest event

This event occurs after a user requested to reset his password.

 

Signature:

function OnPasswordResetRequest ($userName, $email)

 

Parameters:

$userName

The name of the user.

$email

The email of the user.

 

Example

The code snippet below shows how to add a record to a log table when a user requested to reset his password.

 

$connection = createConnection();

 

$sqlTemplate =

    "INSERT INTO user_log (user_name, action_type, action_time) " .

     "VALUES ('%s', '%s', '%s')";               

 

$sql = sprintf($sqlTemplate, $userName, 'password_reset_request',

               date('Y-m-d H:i:s'));

 

$connection->Connect();

$connection->ExecSQL($sql);



Prev Return to chapter overview Next