Skip to content

Commit be75119

Browse files
committed
Merge branch 'master' into hotfix/link-to-target-groups-filtering
2 parents fcd430e + 0611efc commit be75119

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

plugins/bcc-login/includes/class-bcc-login-client.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class BCC_Login_Client {
88
function __construct( BCC_Login_Settings $settings) {
99
$this->_settings = $settings;
1010
add_action( 'parse_request', array( $this, 'on_parse_request' ) );
11+
add_shortcode( 'bcc_person_uid', array( $this, 'get_current_user_person_uid' ) );
1112
}
1213

1314
function start_login($reauth = false) {
@@ -376,7 +377,6 @@ private function request_tokens( $code ) {
376377
}
377378

378379
public function get_current_user_person_uid() {
379-
380380
$token = '';
381381
if (isset($_COOKIE['oidc_token_id'])) {
382382
$token_id = $_COOKIE['oidc_token_id'];
@@ -393,6 +393,7 @@ public function get_current_user_person_uid() {
393393

394394
return $claims['https://login.bcc.no/claims/personUid'];
395395
}
396+
396397
return false;
397398
}
398399

0 commit comments

Comments
 (0)