This commit is contained in:
2020-01-01 09:08:25 -05:00
parent a316c10a0e
commit b4b0252019
2 changed files with 26 additions and 2 deletions
+6
View File
@@ -96,3 +96,9 @@ define('MAX_ADMIN_SESSION',1200);
define('USER_LOGIN', 100011);
define('USER_CREATE_ACCOUNT', 100021);
define('USER_VERIFY_ACCLINK', 100022);
//define('USER_LOGIN', 100011);
//define('USER_LOGIN', 100011);
+20 -2
View File
@@ -26,7 +26,7 @@ class Auth extends Start_Controller {
//print_r( $data );
//print_r( $out );
if (count($out) > 0 && isset($out["session"])) {
print_r($out);
//print_r($out);
//$this->getSessionData($out[0], $session_data); // just for testing
$this->buildUserSession(PHP_API_OK, $out);
@@ -98,9 +98,27 @@ class Auth extends Start_Controller {
$data['lastname'] = $this->input->post('lastname');
$data['username'] = $this->input->post('username');
$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);
}
private function verifyLoginParameters($in, $out) {
$ret = true;
return $ret;
}
}