This commit is contained in:
2019-10-11 16:33:41 -04:00
parent 1e016d1842
commit 6e19b14fdf
9 changed files with 141 additions and 72 deletions
+36 -4
View File
@@ -22,15 +22,19 @@ class Auth extends Start_Controller {
$data["page_title"] = "";
$data["username"] = $username; //"auxsupport";
$data["password"] = "may12002";
$data["password"] = $password;
$out = [];
$this->jubabox_webapi(USER_LOGIN, $data, $out);
//print_r( $data );
//print_r( $out );
if ( count($out) > 0 && isset($out[0]) ){
$this->getSessionData($out[0], $session_data); // just for testing
if ( count($out) > 0 && isset($out["session"]) ){
print_r( $out );
//$this->getSessionData($out[0], $session_data); // just for testing
$this->buildUserSession(PHP_API_OK,$session_data);
$this->buildUserSession(PHP_API_OK,$out);
$valid_login = true;
$this->session->set_flashdata('in',$out);
redirect("page/index");
}
else
{
@@ -45,6 +49,34 @@ class Auth extends Start_Controller {
$this->load->view('home/view_login');
}
/*
.916 SQL [12418]: Found rows: 0
- 18:20:16.916 SQL [12418]: Found rows: 0
- 18:20:16.916 INFO [12418]: RET: added=2019-10-10 10:43:55.26967
- 18:20:16.916 INFO [12418]: RET: created=
- 18:20:16.916 INFO [12418]: RET: email=ameye@chiefsoft.com
- 18:20:16.916 INFO [12418]: RET: firstname=Olu
- 18:20:16.916 INFO [12418]: RET: id=
- 18:20:16.916 INFO [12418]: RET: last_login=2019-10-10 17:55:23.835444
- 18:20:16.916 INFO [12418]: RET: lastname=Amey
- 18:20:16.916 INFO [12418]: RET: loc=
- 18:20:16.916 INFO [12418]: RET: member_id=1
- 18:20:16.916 INFO [12418]: RET: member_profile_id=
- 18:20:16.916 INFO [12418]: RET: mypage=oluamey
- 18:20:16.916 INFO [12418]: RET: password=8ef852e9c900de50c6e9d004f3463686
- 18:20:16.916 INFO [12418]: RET: phone=
- 18:20:16.916 INFO [12418]: RET: result=ECHO BACKEND
- 18:20:16.916 INFO [12418]: RET: session=2AB29AC8698D9F9F7EBCB28A1FE41568
- 18:20:16.916 INFO [12418]: RET: sessionid=2AB29AC8698D9F9F7EBCB28A1FE41568
- 18:20:16.916 INFO [12418]: RET: status=1
- 18:20:16.916 INFO [12418]: RET: stauts=OK
- 18:20:16.916 INFO [12418]: RET: updated=
- 18:20:16.916 INFO [12418]: RET: username=ameye@chiefsoft.com
- 18:20:16.918 INFO [12418]: JUBABOX is stopping...
- 18:20:16.918 DEBUG [12418]: Closing database connection
- 18:20:16.918 SQL [12418]: pgsql_close()
*/
public function forgotpass() {
$this->index();
}