Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Commit

Permalink
Fix exception on invalid JWT token. Version bump.
Browse files Browse the repository at this point in the history
  • Loading branch information
hperrin committed May 8, 2018
1 parent 96fcb81 commit a222801
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sciactive/tilmeld-server",
"description": "Nymph user and group management with access controls.",
"version": "1.0.0-beta.18",
"version": "1.0.0-beta.19",
"time": "2018-05-07",
"type": "library",
"keywords": [
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/HookMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static function setup() {
) {
if ($array[0]['source'] === 'pubsub') {
if (isset($array[0]['token'])) {
$user = Tilmeld::extractToken($array[0]['token']) ?? null;
$user = Tilmeld::extractToken($array[0]['token']) ?: null;
} else {
$user = null;
}
Expand Down

0 comments on commit a222801

Please sign in to comment.