PHP Classes

File: main/login.php

Recommend this page to a friend!
  Classes of Zamani   PHP Login System with Email Verification   main/login.php   Download  
File: main/login.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Login System with Email Verification
Register and login users activated using email
Author: By
Last change:
Date: 2 years ago
Size: 296 bytes
 

Contents

Class file image Download
<?php
require_once '../class/user.php';
require_once
'config.php';

$email = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_EMAIL);
$password = filter_input(INPUT_POST, 'password', FILTER_DEFAULT);

if (
$user->login($email, $password)) {
    die;
} else {
   
$user->printMsg();
    die;
}