A very basic Registration and Login System using PHP and MongoDB. Please note the following
-
This system conists of a Registration page, to register new users, a Login page, for registered users.
-
A home page once a user logs in.
-
It also contains register_action and login_action to handle the data from register and login page respectively.
-
It has page access restrictions imposed using session such that a logged in user cannot access login or registration page and a user who is not logged in cannot access the home page.
-
It uses hashing to store passwords. And the BCRYPT encryption method is used to encrypt and store the passwords as opposed to the md5 and sha1 encryptions.
-
It consists of a seperate library file which contains the functions used in the system.
-
It was made with learning in mind and I'm open to all improvements that can be made to the system.
-
Feel free to use it as you please.
-
I've also used Bootstrap but haven't uploaded the bootstrap files. You can use them by simply addding the bootstrap folders to the same directory as these files.