diff --git a/www/saml/index.php b/www/saml/index.php index 5dd4e077..c80951dd 100644 --- a/www/saml/index.php +++ b/www/saml/index.php @@ -117,7 +117,7 @@ function sign($response, $keyfile, $certfile) $request_data['issuer'] = $issuer; // verify signature - if( ($md['certfile'])) + if( file_exists($md['certfile'])) { if( $request->get('Signature') == null) { throw new Exception("SAML Authnrequest must be signed"); diff --git a/www/tiqr/index.php b/www/tiqr/index.php index 68520a5d..53cecee5 100644 --- a/www/tiqr/index.php +++ b/www/tiqr/index.php @@ -75,7 +75,7 @@ function login( $sessionKey, $userId, $response ) $app['translator']->addResource('yaml', __DIR__.'/locales/en.yml', 'en'); $app['translator']->addResource('yaml', __DIR__.'/locales/nl.yml', 'nl'); -$app->before(function ($request) { +$app->before(function (Request $request) { $request->getSession()->start(); }); diff --git a/www/tiqr/views/index.html b/www/tiqr/views/index.html index a41520bb..3a0e07cd 100644 --- a/www/tiqr/views/index.html +++ b/www/tiqr/views/index.html @@ -41,23 +41,25 @@ {% include "localeform.html" %}

{{ 'login.title' | trans }}

- {% if id %} - - {{ 'login.push.message' | trans }} -