Skip to content

Commit

Permalink
improve layout and small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
joostd committed Sep 17, 2015
1 parent 23cc22f commit f1385b3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion www/saml/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion www/tiqr/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

Expand Down
28 changes: 14 additions & 14 deletions www/tiqr/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,25 @@
{% include "localeform.html" %}
<h2>{{ 'login.title' | trans }}</h2>

{% if id %}
<!-- logging in with tiqr id {{ id }}-->
{{ 'login.push.message' | trans }}
<ul>
{% if id %}
<!-- logging in with tiqr id {{ id }}-->
{{ 'login.push.message' | trans }}
<ul>
<li>{{ 'login.push.instructions.1' | trans }}</li>
<li>{{ 'login.push.instructions.2' | trans }}</li>
</ul>
<br/>
{{ 'login.push.fail' | trans({'%link_start%': '<a class="scan" href="#">', '%link_end%': '</a>'}) | raw }}
{% else %}
{{ 'login.qr.message' | trans }}
<br/>
{% endif %}
<br/>
{{ 'login.push.fail' | trans({'%link_start%': '<a class="scan" href="#">', '%link_end%': '</a>'}) | raw }}
{% else %}
{{ 'login.qr.message' | trans }}
<br/>
{{ 'login.qr.no_account' | trans({'%link_start%': '<a href=\'/tiqr/enrol?return='~return_url~'\'>', '%link_end%': '</a>'}) | raw }}
<!--TODO fix URL -->
{% endif %}

<br/>
<a href="{{authUrl}}">
<img class="qr" src='qr' style="display:none; cursor: none;" />
<img class="qr" src='qr' style="{{ id ? 'display:none;' : '' }} cursor: none;" />
</a>

<p>
Expand All @@ -69,7 +71,7 @@ <h2>{{ 'login.title' | trans }}</h2>
{% if not id %}
{{ 'login.qr.manual.userid' | trans }}: <input type="text" tabindex="2" name="userID"/>
{% else %}
{{ 'login.qr.manual.userid' | trans }}: <input type="hidden" value="{{ id }}" name="userID"/>
<input type="hidden" value="{{ id }}" name="userID"/>
{% endif %}
{{ 'login.qr.manual.otp' | trans }}: <input type="text" name="otp" tabindex="3"/>
<input type="submit" value="{{ 'login.qr.manual.button' | trans }}"/>
Expand All @@ -84,8 +86,6 @@ <h2>{{ 'login.title' | trans }}</h2>
});
});
</script>
{{ 'login.qr.no_account' | trans({'%link_start%': '<a href=\'/tiqr/enrol?return='~return_url~'\'>', '%link_end%': '</a>'}) | raw }}
<!--TODO fix URL -->

</div><!-- /content -->

Expand Down

0 comments on commit f1385b3

Please sign in to comment.