Secure login & registration form
Setting it up
Get your clone from Github:
Project on Github
Database
Create a database & user in your MySQL database
We will need 2 tables. Use these SQL snippets here to create them
CREATE TABLE `secure_login`.`members` ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY, `username` VARCHAR(30) NOT NULL, `email` VARCHAR(50) NOT NULL, `password` CHAR(128) NOT NULL, `salt` CHAR(128) NOT NULL ) ENGINE = InnoDB;
CREATE TABLE `secure_login`.`login_attempts` ( `user_id` int(11) NOT NULL, `time` VARCHAR(30) NOT NULL ) ENGINE=InnoDB
Update your database settings in the /secure/db_connect.php file
And BOOM! You are done!
Thank you wiki-how for the scripts! Article