Skip to content

Minimal and secure PHP login script, bootstrap used for quick login form design.

License

Notifications You must be signed in to change notification settings

martinontcode/secured-php-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secure and minimal PHP login script

PHP login script that includes secure validation, MySQLi injection protection and has great design.

On HOLD

As my university academic session is starting, I won't be able to update my projects as often as I would like to.

Screenshot

Login Form

Who is this script for ?

If you are looking for a simple login script then this is for you. A lot of beginners try to build login scripts from scratch and end up using outdated salting and hashing. This script comes with a fully implemented user validation system covering most of security issues. You should use this login script with the registraton script also available on my [Github] (https://github.com/MartinoEst/php-user-registration).

Requirements

  1. PHP 5.6
  2. mySQLi activated

Live demo

http://login.martincodes.com

You can user these credentials to test the login function:
Username: test
Password: test

Installation

Create a MySQL database named 'membership'.
Change database server, user, password in config/dbconnect.php.
Run the script below to create MySQL table.

CREATE TABLE `membership`.`users`(
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `username` VARCHAR(20) NOT NULL,
  `email` VARCHAR(40) NOT NULL,
  `password` VARCHAR(128) NOT NULL,
  PRIMARY KEY(`id`)
) ENGINE = InnoDB;

License

Licensed under MIT. You can use this script for free for any private or commercial projects.

Contribute

Please create a feature-branch if possible when committing to the project, if not then simply commit to master branch.

About

Minimal and secure PHP login script, bootstrap used for quick login form design.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages