fix
This commit is contained in:
@@ -96,3 +96,9 @@ define('MAX_ADMIN_SESSION',1200);
|
|||||||
|
|
||||||
|
|
||||||
define('USER_LOGIN', 100011);
|
define('USER_LOGIN', 100011);
|
||||||
|
|
||||||
|
define('USER_CREATE_ACCOUNT', 100021);
|
||||||
|
define('USER_VERIFY_ACCLINK', 100022);
|
||||||
|
|
||||||
|
//define('USER_LOGIN', 100011);
|
||||||
|
//define('USER_LOGIN', 100011);
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ class Auth extends Start_Controller {
|
|||||||
//print_r( $data );
|
//print_r( $data );
|
||||||
//print_r( $out );
|
//print_r( $out );
|
||||||
if (count($out) > 0 && isset($out["session"])) {
|
if (count($out) > 0 && isset($out["session"])) {
|
||||||
print_r($out);
|
//print_r($out);
|
||||||
//$this->getSessionData($out[0], $session_data); // just for testing
|
//$this->getSessionData($out[0], $session_data); // just for testing
|
||||||
|
|
||||||
$this->buildUserSession(PHP_API_OK, $out);
|
$this->buildUserSession(PHP_API_OK, $out);
|
||||||
@@ -98,9 +98,27 @@ class Auth extends Start_Controller {
|
|||||||
$data['lastname'] = $this->input->post('lastname');
|
$data['lastname'] = $this->input->post('lastname');
|
||||||
$data['username'] = $this->input->post('username');
|
$data['username'] = $this->input->post('username');
|
||||||
$data['password'] = $this->input->post('pass2');
|
$data['password'] = $this->input->post('pass2');
|
||||||
|
|
||||||
|
$x = [];
|
||||||
|
$verifySignup = $this->verifyLoginParameters($data, $x);
|
||||||
|
$out = [];
|
||||||
|
if (true == $verifySignup) {
|
||||||
|
$this->jubabox_webapi(USER_CREATE_ACCOUNT, $data, $out);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
} else {
|
||||||
|
// send error message
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$this->load->view('home/view_register', $data);
|
$this->load->view('home/view_register', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function verifyLoginParameters($in, $out) {
|
||||||
|
$ret = true;
|
||||||
|
|
||||||
|
|
||||||
|
return $ret;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user