BBnepal-Accounts/account/application/controllers/Login.php

18 lines
434 B
PHP
Raw Normal View History

2024-07-10 12:43:19 +00:00
<?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);
}
}