Commit 56ee75da authored by Deddy Vita Kurniawan's avatar Deddy Vita Kurniawan

* revisi function _login, access_token ambil dari format_helper.php

parent 902fd007
...@@ -47,10 +47,10 @@ class Auth extends CI_Controller ...@@ -47,10 +47,10 @@ class Auth extends CI_Controller
if ($user->STATUS == 1) { if ($user->STATUS == 1) {
if ($user->ID_UNIT_KERJA == $unit->ID_UNIT_KERJA) { if ($user->ID_UNIT_KERJA == $unit->ID_UNIT_KERJA) {
if(!$user->ACCESS_TOKEN){ /* if(!$user->ACCESS_TOKEN){
$data = $this->access_token($user->CLIENT_ID, $user->CLIENT_SECRET); $data = $this->access_token($user->CLIENT_ID, $user->CLIENT_SECRET);
$this->main_model->get_sub_unit_id($user->ID,$data); $this->main_model->get_sub_unit_id($user->ID,$data);
} } */
$data = [ $data = [
'id' => $user->ID, 'id' => $user->ID,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment