BBnepal-Accounts/account/application/controllers/Login.php
Sampanna Rimal 9cd05ef3cb commitall
2024-07-10 18:28:19 +05:45

18 lines
434 B
PHP

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Login extends CI_Controller
{
public function index()
{
$data['re'] = '';
if (isset($_GET['url'])) {
$data['re'] = $_GET['url'];
}
if (isset($_POST['email'])) {
authenticateUser($_POST['email'], $_POST['password'], $data['re']);
}
$this->load->view("login",$data);
}
}