PHP Classes

Lou Login: Authenticate users stored in a MySQL database

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 499 All time: 5,822 This week: 455Up
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: 63
All time rank: 215529 in Portugal Portugal
Week rank: 170 Up2 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 (4)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:499
This week:0
All time:5,822
This week:455Up