Line | |
---|
1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
---|
2 | |
---|
3 | class User_model extends CI_Model |
---|
4 | { |
---|
5 | |
---|
6 | function __construct(){ |
---|
7 | parent::__construct(); |
---|
8 | $this->vservices->setApiUrl($this->config->item('api_url')); |
---|
9 | $this->vservices->setConnection($this->curl); |
---|
10 | //$this->vservices->setUserId(33); |
---|
11 | } |
---|
12 | |
---|
13 | function checkLogin ($src, $token, $username, $password) |
---|
14 | { |
---|
15 | $data = $this->vservices->actionExecute('login', array('src' => $src, 'token' => $token, 'username' => $username, 'password' => $password), 'user'); |
---|
16 | return $data; |
---|
17 | } |
---|
18 | |
---|
19 | |
---|
20 | |
---|
21 | |
---|
22 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.