Twofactor authentication and strong password
This commit is contained in:
@@ -255,9 +255,9 @@ class MY_Model extends CI_Model {
|
||||
function insert_record($data)
|
||||
{
|
||||
$data['creation_date'] = date( 'Y-m-d G:i:s' );
|
||||
$data['created_by'] = $this->username;
|
||||
$data['created_by'] = '';
|
||||
$data['last_update_date'] = date( 'Y-m-d G:i:s' );
|
||||
$data['last_updated_by'] = $this->username;
|
||||
$data['last_updated_by'] = '';
|
||||
$this->db->insert( $this->tablename, $data );
|
||||
|
||||
$newID = $this->db->insert_id();
|
||||
@@ -287,12 +287,8 @@ class MY_Model extends CI_Model {
|
||||
|
||||
function update_record($data, $id)
|
||||
{
|
||||
$this->createActivity( $id, 'UPDATE' );
|
||||
|
||||
$a = $this->externe;
|
||||
|
||||
$data['last_update_date'] = date( 'Y-m-d G:i:s' );
|
||||
$data['last_updated_by'] = $this->username;
|
||||
$data['last_updated_by'] = '';
|
||||
$this->db->update( $this->tablename, $data, 'id = ' . $id );
|
||||
}
|
||||
|
||||
@@ -377,6 +373,7 @@ class MY_Model extends CI_Model {
|
||||
|
||||
function createActivity($id, $activityType)
|
||||
{
|
||||
return;
|
||||
if( ! isset( $this->logActivity ) || ! $this->logActivity ) return;
|
||||
$oldData = $this->get( $id );
|
||||
|
||||
@@ -385,7 +382,7 @@ class MY_Model extends CI_Model {
|
||||
$data = array(
|
||||
'table' => $this->tablename,
|
||||
'table_id' => $id,
|
||||
'username' => $this->username,
|
||||
'username' => '',
|
||||
'olddata' => $oldData,
|
||||
'activitytype' => $activityType,
|
||||
'activitytime' => date( 'Y-m-d H:i:s' ),
|
||||
|
||||
Reference in New Issue
Block a user