login google
This commit is contained in:
@@ -207,7 +207,7 @@ class WrenchOauth extends BaseController
|
||||
// not really implemented
|
||||
|
||||
switch($in["auth_type"]){
|
||||
case 'GOOGLE':
|
||||
case 'GOOGLE33':
|
||||
log_message('critical', "prepareOauthEndPointDataL LOGIN DATA STEP 2".serialize($in) );
|
||||
$local_out["user_info"] = $this->gooleOAuthGetUser($in["access_token"], $local_out);
|
||||
log_message('critical', "prepareOauthEndPointDataL FINAL DATALOGIN DATA STEP 3".serialize($local_out) );
|
||||
@@ -251,6 +251,7 @@ class WrenchOauth extends BaseController
|
||||
$data['firstname'] = $user["given_name"];;
|
||||
$data['lastname'] = $user["family_name"];;
|
||||
$data['email'] = $user["email"];
|
||||
$data['login_channel'] = LOGIN_GOOGLE;
|
||||
$data['sessionid'] = rand(10000, 99999) . "A" . rand(10000, 99999);
|
||||
|
||||
// $this->load->model('backend_model');
|
||||
|
||||
Reference in New Issue
Block a user