Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Logout
- public function logout_post()
- {
- $username = trim($this->post('username'));
- if ($username == '') {
- $response = [
- 'resp_error' => true,
- 'resp_msg' => 'Username Kosong.',
- ];
- } else {
- $data = array(
- 'device_id' => '',
- );
- $this->db->where('user_username', $username);
- $this->db->update('lemlit_users', $data);
- $response = [
- 'resp_error' => false,
- 'resp_msg' => 'Device ID Updated.',
- ];
- }
- $this->response($response, 200);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement