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".
John Gondek: "Your software is amazing. I consider myself a novice at PHP and JS and with your software I have a web page that is truly fantastic. Thank you so much ".

More

Add your opinion

PostgreSQL PHP Generator online Help

Prev Return to chapter overview Next

User-defined authorization

This kind of authorization allows you to define your own custom authentication. This feature requires you to define a function that takes entered username and password and returns true or false depending on their validity. This means you can use any possible storage for user credentials and any encryption algorithm you like.

 

 

Example:

To check that the password is equal to the user name and password contains 5 or more symbols, place the following code to the body of the CheckUserIdentity function. This condition means that the 'John/John' or 'John/Michael' pair will be declined while the 'Michael/Michael' or 'Gloria/Gloria' login/password combination will be accepted.

 

if ($username == $password)

  $result = strlen($password) >= 5;

else

  $result = false;

 

See also: OnGetCustomPagePermissions, OnGetCustomRecordPermissions.

 



Prev Return to chapter overview Next