This commit is contained in:
2022-02-22 15:44:56 -05:00
parent 18c2b8668c
commit f2e9e1550e
7 changed files with 100 additions and 23 deletions
+27 -1
View File
@@ -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();