thyseus / yii-user-management

a user management module collection for the yii framework
186 stars 122 forks source link

Hybrid Login in YUM #133

Closed nagarajpg closed 11 years ago

nagarajpg commented 11 years ago

Hi all,

I am trying to use Hybrid login in YUM, I followed the instruction given in the doc/. I want to create a user profile based on hybrid login, if user does not exists i want to create a new user and a user profile. otherwise I want that user login and use our system. The problem is when I login through google( i am trying only google for now ) it redirects me to the login page of the site. it won't login me as a user. But when I login by the login from it logs in as local user.

How to make login using hybrid login? What is the correct redirect url I need to give at google as well as in my config/hybridauth.php?

Please help Thank you.

prawee commented 11 years ago

follow by doc. copy hybridauth.php to same index.php.

nagarajpg commented 11 years ago

Solved this problem, you have to check for hauth.done when calling the end process.

if (isset($_REQUEST['hauth_start']) || isset($_REQUEST['hauth_done']))
        {
           Hybrid_Endpoint::process();

      }