Two factor authentication
This commit is contained in:
@@ -24,7 +24,7 @@ class Users extends MY_Controller{
|
||||
};// if
|
||||
}
|
||||
function getuserdetail(){
|
||||
if (!$this->userid || $this->nologin){die;};
|
||||
if (!$this->userid || $this->nologin) die;
|
||||
|
||||
$userid = $this->uri->segment(4);
|
||||
if (!$userid) {$userid = $this->userid; };
|
||||
@@ -40,7 +40,8 @@ class Users extends MY_Controller{
|
||||
$data=array('voornaam' => $this->clean_input('voornaam'),
|
||||
'tussenvoegsel' => $this->clean_input('tussenvoegsel'),
|
||||
'achternaam' => $this->clean_input('achternaam'),
|
||||
'email' => $this->clean_input('email') );
|
||||
'email' => $this->clean_input('email') ,
|
||||
'twofactor' => $this->clean_input('twofactor') );
|
||||
if (strlen($this->input->post('wachtwoord')) >=4){
|
||||
$data['wachtwoord']=$this->input->post('wachtwoord');
|
||||
} ;
|
||||
@@ -223,6 +224,7 @@ class Users extends MY_Controller{
|
||||
"tussenvoegsel" =>$this->input->post('tussenvoegsel'),
|
||||
"achternaam" =>$this->input->post('achternaam'),
|
||||
"email" =>$this->input->post('email'),
|
||||
"twofactor" =>$this->clean_input('twofactor'),
|
||||
"gnaam" =>$gnaam);
|
||||
$this->Users_model->update_record($data, $userid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user