Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
* develop:
  add missing error messages in tiqr idp
  • Loading branch information
joostd committed Jul 5, 2016
2 parents e789a57 + 52623e5 commit 95d5960
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion www/tiqr/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ login:
message: If the instructions on your phone instruct you to login manually, click %link_start%here%link_end%.
userid: User ID
otp: One time password
button: Go
button: Ok
no_account: No account yet? Please create a new account %link_start%here%link_end%.
cancel: Cancel
error:
invalid_challenge: Invalid challenge - please reload this page and try again.
invalid_response: Invalid response - have you entered the correct PIN?

enrol:
title: Register new Tiqr account
status:
Expand Down
5 changes: 4 additions & 1 deletion www/tiqr/locales/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ login:
message: Krijg je een melding op je telefoon om handmatig in te loggen? Klik dan %link_start%hier%link_end%.
userid: User ID
otp: One time password
button: Go
button: Ok
no_account: Geen account? Maak er dan %link_start%hier%link_end% eerst een aan.
cancel: Annuleren
error:
invalid_challenge: ongeldig - herlaad deze pagina en probeer opnieuw.
invalid_response: ongeldig one time password - heb je de juiste PIN ingevoerd?
enrol:
title: Registreer nieuw Tiqr-account
status:
Expand Down
7 changes: 6 additions & 1 deletion www/tiqr/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
});
}
jQuery(document).ready(verifyLogin);

var errors = {
INVALID_CHALLENGE:"{{ 'error.invalid_challenge' | trans }}",
INVALID_RESPONSE:"{{ 'error.invalid_response' | trans }}"
}
</script>

<div class="container">
Expand Down Expand Up @@ -110,7 +115,7 @@ <h2>{{ 'login.title' | trans }}</h2>
$.post(url, request,
function(data){
if( data != "OK" )
$( "#result" ).empty().append( "Error: " + data );
$( "#result" ).empty().append( "Error: " + errors[data] );
});
});

Expand Down

0 comments on commit 95d5960

Please sign in to comment.