trying to create a login form using php OOP

This is where you share YOUR scripts with others

Moderators: egami, macek, gesf

Post Reply
User avatar
php-forum GURU
php-forum GURU
Posts: 1202
Joined: Mon Feb 22, 2016 5:52 pm

Mon Jul 25, 2016 11:19 am

I haven't watched the video, but, check that this code should be commented out:

Code: Select all

if($validation->passed()) {
/* $user = new User(); // log user in.... make a new object so that we use the method
$login = $user->login(Input::get('username'), Input::get('password'));

if($login) { // check to see if login is successful or not
echo 'Success';
} else{
echo '<p>Sorry, logging has failed!</p>';
Post Reply