Changeset 21584 for extensions/oAuth/include/public_events.inc.php
- Timestamp:
- Mar 15, 2013, 6:43:07 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/oAuth/include/public_events.inc.php
r21325 r21584 61 61 $adapter = $hybridauth->authenticate($provider); 62 62 $remote_user = $adapter->getUserProfile(); 63 64 // security, check remote identifier 65 if ($remote_user->identifier != $user_identifier) 66 { 67 pwg_unset_session_var('oauth_new_user'); 68 throw new Exception('Hacking attempt!'); 69 } 63 70 64 71 $template->assign(array( … … 73 80 74 81 $oauth_id = $provider.'---'.$remote_user->identifier; 75 76 // security, check remote identifier77 if ($remote_user->identifier != $user_identifier)78 {79 pwg_unset_session_var('oauth_new_user');80 throw new Exception('Hacking attempt!');81 }82 82 83 83 // form submited … … 96 96 $user_id = get_userid($_POST['login']); 97 97 98 // u dpdate oauth field98 // update oauth field 99 99 $query = ' 100 100 UPDATE '.USERS_TABLE.' … … 235 235 $template->assign('REDIRECT_TO', get_gallery_home_url()); 236 236 237 $template->set_prefilter('menubar', 'oauth_add_menubar_buttons ');237 $template->set_prefilter('menubar', 'oauth_add_menubar_buttons_prefilter'); 238 238 } 239 239 … … 254 254 $add = 'disabled="disabled" '; 255 255 $script = ' 256 {footer_script} {literal}256 {footer_script} 257 257 jQuery("input[type=\'password\'], input[name=\'send_password_by_mail\']").parent("li").css("display", "none"); 258 {/ literal}{/footer_script}';258 {/footer_script}'; 259 259 260 260 $content = str_replace($search, $search.$add, $content); … … 269 269 } 270 270 271 function oauth_add_menubar_buttons ($content)271 function oauth_add_menubar_buttons_prefilter($content) 272 272 { 273 273 $search = '{include file=$block->template|@get_extent:$id }';
Note: See TracChangeset
for help on using the changeset viewer.