Ignore:
Timestamp:
Jan 25, 2013, 12:26:05 PM (11 years ago)
Author:
mistic100
Message:

fix OpenID

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/oAuth/main.inc.php

    r20337 r20369  
    117117 
    118118  // in case of registration aborded
    119   if (script_basename() != 'register')
     119  if ( script_basename() != 'register' and ($data=pwg_get_session_var('oauth_new_user')) !== null )
    120120  {
    121121    pwg_unset_session_var('oauth_new_user');
     122   
     123    require_once(OAUTH_PATH . 'include/hybridauth/Hybrid/Auth.php');
     124   
     125    try {
     126      $hybridauth = new Hybrid_Auth($hybridauth_conf);
     127      $adapter = $hybridauth->getAdapter($data[0]);
     128      $adapter->logout();
     129    }
     130    catch (Exception $e) {
     131    }
    122132  }
    123133}
Note: See TracChangeset for help on using the changeset viewer.