Skip to content

arjayads/php-simple-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-simple-auth

This project demonstrates simple authentication using PHP

Features:

  • Sign-up
  • Activate account
  • Sign-in
  • Reset password
  • Remember user

Don't forget to configure the settings

/Config

Create User table to store registrants

  CREATE TABLE `User` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `firstName` varchar(45) DEFAULT NULL,
  `lastName` varchar(45) DEFAULT NULL,
  `email` varchar(45) DEFAULT NULL,
  `username` varchar(45) DEFAULT NULL,
  `passwordDigest` varchar(60) DEFAULT NULL,
  `activationDigest` varchar(60) DEFAULT NULL,
  `rememberDigest` varchar(60) DEFAULT NULL,
  `resetDigest` varchar(60) DEFAULT NULL,
  `resetSentAt` datetime DEFAULT NULL,
  `activatedAt` datetime DEFAULT NULL,
  `isActive` bit(1) DEFAULT NULL,
  `createdAt` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedAt` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB;

About

Simple user authentication in PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages