Ignore:
Timestamp:
Jan 11, 2014, 1:27:14 AM (10 years ago)
Author:
mistic100
Message:

add Persona authentification

File:
1 edited

Legend:

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

    r26604 r26605  
    2020
    2121
     22global $hybridauth_conf, $conf;
     23
    2224// try to load hybridauth config
    23 global $hybridauth_conf;
    24 
    2525include_once(OAUTH_PATH . 'include/functions.inc.php');
    2626
     
    2929  load_hybridauth_conf();
    3030}
     31
     32// force getuserdata() to retrieve 'oauth_id' field
     33$conf['user_fields']['oauth_id'] = 'oauth_id';
    3134
    3235
     
    4346  add_event_handler('loc_begin_profile', 'oauth_begin_profile');
    4447 
    45   add_event_handler('loc_after_page_header', 'oauth_include_template');
     48  add_event_handler('loc_after_page_header', 'oauth_page_header');
    4649 
    4750  add_event_handler('try_log_user', 'oauth_try_log_user', EVENT_HANDLER_PRIORITY_NEUTRAL-30, 2);
     
    98101    // }
    99102  // }
     103 
     104  // pwg_unset_session_var('persona_logout');
    100105}
    101106
Note: See TracChangeset for help on using the changeset viewer.