includes/services/wsl.authentication.php 1 location
|
@@ 389-394 (lines=6) @@
|
386 |
|
|
387 |
|
/* 1. Grab the user profile from social network */ |
388 |
|
|
389 |
|
if( ! ( isset( $_SESSION['wsl::userprofile'] ) && $_SESSION['wsl::userprofile'] && $hybridauth_user_profile = json_decode( $_SESSION['wsl::userprofile'] ) ) ) |
390 |
|
{ |
391 |
|
$hybridauth_user_profile = wsl_process_login_request_user_social_profile( $provider ); |
392 |
|
|
393 |
|
$_SESSION['wsl::userprofile'] = json_encode( $hybridauth_user_profile ); |
394 |
|
} |
395 |
|
|
396 |
|
$adapter = wsl_process_login_get_provider_adapter( $provider ); |
397 |
|
|
includes/admin/components/auth-paly/index.php 1 location
|
@@ 43-47 (lines=5) @@
|
40 |
|
$adapter = wsl_process_login_get_provider_adapter( $provider_id ); |
41 |
|
|
42 |
|
// make as few call as possible |
43 |
|
if( ! ( isset( $_SESSION['wsl::userprofile'] ) && $_SESSION['wsl::userprofile'] && $user_profile = json_decode( $_SESSION['wsl::userprofile'] ) ) ) |
44 |
|
{ |
45 |
|
$user_profile = $adapter->getUserProfile(); |
46 |
|
$_SESSION['wsl::userprofile'] = json_encode( $user_profile ); |
47 |
|
} |
48 |
|
|
49 |
|
} |
50 |
|
catch( Exception $e ) |