PHP Classes

Lou Login: Authenticate users stored in a MySQL database

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 494 All time: 5,831 This week: 216Up
Version License PHP version Categories
lou-auth-user 1.2Freeware5PHP 5, Databases, User Management
Description Author

This class can authenticate users stored in a MySQL database.

It can query a MySQL databas using PDO to retrieve the password hash for a user with a given email address.

The class returns the result of whether the specified password hash matches the original stored password hash.

Picture of António Lourenço
  Performance   Level  
Name: António Lourenço <contact>
Classes: 4 packages by
Country: Portugal Portugal
Age: 61
All time rank: 215329 in Portugal Portugal
Week rank: 587 Up12 in Portugal Portugal Up

Details
This class performs the access control users on a system. This class can authenticate users in a database. it's performs a query to the database, retrieve the hashed password of the user account via e-mail. The class compares the typed password with the password database to verify that it is correct for the given user. EXAMPLE : $endereco = new Lou_Auth_User('mail@domain.com', 'xxxxxxxxxx'); var_dump($endereco->isAuthUser()); If you do not want to use the Lou_registo.php file, you can create the table "users" in the database "test" and visit the site http://online-code-generator.com/md5-hash-with-optional-salt.php to generate the md5 hash. Must then insert it into the database table. //criar tabela users 'CREATE TABLE IF NOT EXISTS users ( id INT(5) NOT NULL AUTO_INCREMENT, password VARCHAR(128) NOT NULL, email VARCHAR(255) NOT NULL, PRIMARY KEY(id), UNIQUE KEY(email) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1';
  Files folder image Files  
File Role Description
Plain text file Lou_login.class.php Class Class source
Accessible without login Plain text file Lou_registo.php Aux. An example for Lou_login.class
Accessible without login Plain text file Lou_login.php Example An example for Lou_login.class
Accessible without login Plain text file readme Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 0%
Total:494
This week:0
All time:5,831
This week:216Up