In this tutorial, we are discussing about login form by using codeigniter 4.
The steps implemented in this tutorial are:
Validate the form data
Collect the data and verify the data availability in DB
If data exists
verify the password
check the status is active or inactive
if all okay, create a session, redirect to user profile page
If data not exists, redirect to login page with error message.