trying to create a login form using php OOP

A

Anonymous

Guest
I haven't watched the video, but, check that this code should be commented out:
Code:
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>';
}*/
 
Back
Top