Skip to content

Commit

Permalink
fix bug in log message
Browse files Browse the repository at this point in the history
  • Loading branch information
joostd committed Jul 6, 2015
1 parent b4360d3 commit 67308ac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions www/tiqr/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,8 @@
}
$sid = $app['session']->getId();
$userdata = $tiqr->getAuthenticatedUser($sid);
$app['monolog']->addInfo(sprintf("[%s] userdata '%s'", $sid, $userdata));

if( !is_null($userdata) ) {
$app['monolog']->addInfo(sprintf("[%s] userdata '%s'", $sid, $userdata));
$app['session']->set('authn', array('username' => $userdata));
return $app->redirect($return);
}
Expand All @@ -146,7 +145,7 @@
$app['monolog']->addWarning(sprintf("Failure sending push notification to [%s]", $translatedAddress));
}
} else {
$app['monolog']->addWarning(sprintf("No %s translated address available for [%s]"),$notificationType,$notificationAddress);
$app['monolog']->addWarning(sprintf("No %s translated address available for [%s]", $notificationType, $notificationAddress));
}
}
$tiqr->generateAuthQR($sessionKey);
Expand Down

0 comments on commit 67308ac

Please sign in to comment.