Welcome Guest, Not a member yet? Register   Sign In
Login Question Codeigniter with Google API

(This post was last modified: 05-26-2017, 02:08 PM by wolfgang1983.)

When a user logins with my google api function and is success full it adds # to the redirected controller url

I don't know how its adding the # hashtag to the redirect url I use vhost

PHP Code:

Question is there away to stop the hashtag from showing up when user is redirect to there usercp?

PHP Code:
public function google() {
   $googleplus_auth $this->googleplus->getAuthenticate();
   $googleplus_info $this->googleplus->getUserInfo();

   $google_data = array(
'google_id' => $googleplus_info['id'],
'google_name' => $googleplus_info['name'],
'google_link' => $googleplus_info['link'],
'image' => $googleplus_info['picture'],
'email' => $googleplus_info['email'],
'firstname' => $googleplus_info['given_name'],
'lastname' => $googleplus_info['family_name']

   $login_google_userid $this->login_model->login_with_google($googleplus_info['id'], $google_data);

   $_SESSION['user_id'] = $login_google_userid;


[Image: 3NmPQILJbu5E.png]

PHP Code:

('BASEPATH') OR exit('No direct script access allowed');

$config['googleplus']['application_name'] = 'Some Name';
$config['googleplus']['client_id'       '********;  // Some id
googleplus']['client_secret']    = '********'; // Some secret
googleplus']['redirect_uri']     = 'http://www.mysetdomain.com/account/login/google';
$config['googleplus']['api_key'         '********'// Some api
$config['googleplus']['scopes'          = array(); 

I use this google api from here https://github.com/moemoe89/google-login-ci3

Attached Files
.php   Login.php (Size: 2.95 KB / Downloads: 164)
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!

Messages In This Thread
Login Question Codeigniter with Google API - by wolfgang1983 - 05-25-2017, 11:23 PM

Theme © iAndrew 2016 - Forum software by © MyBB