fix
This commit is contained in:
@@ -10,6 +10,26 @@ class Login extends WRB_Controller {
|
||||
$this->load->library(array('session', 'lib_login'));
|
||||
}
|
||||
|
||||
private function excudedEmails(){
|
||||
$ecData= [
|
||||
'ses66181+1@gmail.com',
|
||||
'tokslawus@gmail.com',
|
||||
'ses6681+3@gmail.com',
|
||||
'ameye@chiefsoft.com',
|
||||
'ses66181@gmail.com',
|
||||
];
|
||||
|
||||
if (in_array($_SESSION['username'], $ecData))
|
||||
{
|
||||
$_SESSION['allow_payment_features'] = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['allow_payment_features'] = false;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$data["login_message"] = "";
|
||||
$this->load->library('form_validation');
|
||||
@@ -59,6 +79,7 @@ class Login extends WRB_Controller {
|
||||
$this->logUser('Account login');
|
||||
$this->refreshAccountDetail($_SESSION['member_id']);
|
||||
$this->getSessionArray();
|
||||
$this->excudedEmails();
|
||||
redirect('dash');
|
||||
}
|
||||
} else {
|
||||
@@ -127,6 +148,9 @@ class Login extends WRB_Controller {
|
||||
$this->logUser('Account login');
|
||||
$this->refreshAccountDetail($_SESSION['member_id']);
|
||||
$this->getSessionArray();
|
||||
|
||||
$this->excudedEmails();
|
||||
|
||||
redirect('dash');
|
||||
}
|
||||
}
|
||||
@@ -158,7 +182,9 @@ class Login extends WRB_Controller {
|
||||
$_SESSION['active_task'] = $this->account_model->loadActiveTaskCount($member_id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public function logout() {
|
||||
$this->lib_login->destroy_session();
|
||||
|
||||
Reference in New Issue
Block a user