Yusuf Omotoso
Technology, Design and Development, Team Ruby's Task
Hng Team Ruby Task (Back-end)

Our Team was given the task to build a login page as well as a sign up page. This post is about our Back-end development. Back end Development refers to the server side of development where you are primarily focused on the functionality of the site. Our task is to make the login and sign up pages of our website functioning and able to authenticate users. As you might already know now, the frontend was built with HTML, CSS, JS and bootstrap framework and the back-end was written in vanilla PH,P no frameworks, and MySQLi(for database). First, we created the users table in MySQLi database where we will store data of users who sign-up to our website then we connected to MySQLi database server via a PHP configuration script. Next we wrote a PHP script that works along with the sign-up page. This script takes the data/credentials entered by the user, verify that they meet required standard for instance, all passwords must be alphanumeric and more than 6 characters while username must be unique. If the data the user enters does not meet the required standard an error message will be sent to them. If their data meets the standard, their account is then created and their data is inserted and stored in the database. we also used the PHP password\_hash() function to create password hash from the password string entered by the user. This function creates a password hash using a strong one-way hashing algorithm. It also generates and applies a random salt automatically when hashing the password; this means that even if two users have the same passwords, their password hashes will be different. After completing the registration system, we wrote the login script that authenticates user login. When a user attempts to login to the site, the database selects all records if a record is found and the password match, they're successfully logged in or if they're not, they see an "invalid login details" error message which should prompt them to register an account first. Behind the scenes, each session handles storage and validation of some sort and when the user is done and logs out, that session is destroyed.

Yusuf Omotoso
HNG6.0 Pre-Internship: My Journey So Far (1)

Introduction The HNG6.0 pre-Internship is the sixth of his kind, organized by hotels.ng.  This is the 6th cohort, and it is a little different from the first five because of the pre-internship introduced...

Yusuf Omotoso
My Internship Journey with HNG

Introduction I am a web developer enthusiast, and I know the importance of skill, so I joined the HNG(Hostels.ng) internship program. So far, we are in the pre-internship stage with STARTNG, and I am progressing nicely...

Yusuf Omotoso
Greetings from Nigeria

Hello World, my name is Yusuf from Nigeria. I am a front-end web developer enthusiast. I love beautifully crafted designs. I am a volunteer for TechQues where we are teaching about 30000 kids to program and looking forward to recording more numbers...

Yusuf Omotoso
HNG6.0 Pre-Internship: My Journey So Far (2)

Introduction The HNG6.0 Pre-internship is some weeks now, and I don't really know the best word to use, let me just say the journey has been awesome and I am keeping track of my journey right here on lucid...