Skip to content

Commit

Permalink
Merge pull request #4 from privacybydesign/support-pilot-amsterdam-cr…
Browse files Browse the repository at this point in the history
…edentialtypes

Add support for pbdf.pilot-amsterdam credential types
  • Loading branch information
ivard authored May 4, 2022
2 parents 9590114 + 11b14de commit 6bd2fe3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@
console.log("Session successful!");
console.log("Result:", data);
// Continue to order page if user is 18+
if (data.disclosed[0][0].rawvalue.toLowerCase() === 'yes') {
let attr = data.disclosed[0][0].rawvalue.toLowerCase();
if (attr === 'yes' || attr === 'ja') {
setTimeout(() => {
$('#phase-agecheck').hide();
$('#phase-finished').show();
Expand Down
6 changes: 6 additions & 0 deletions start_session.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
['pbdf.pbdf.ageLimits.over18'],
['pbdf.nijmegen.ageLimits.over18'],
['pbdf.gemeente.personalData.over18'],
['pbdf.pilot-amsterdam.idcard.over18'],
['pbdf.pilot-amsterdam.passport.over18'],
],
],
],
Expand All @@ -22,6 +24,8 @@
['pbdf.pbdf.ageLimits.over16'],
['pbdf.nijmegen.ageLimits.over16'],
['pbdf.gemeente.personalData.over16'],
['pbdf.pilot-amsterdam.idcard.over16'],
['pbdf.pilot-amsterdam.passport.over16'],
],
],
],
Expand All @@ -32,6 +36,8 @@
['pbdf.pbdf.ageLimits.over12'],
['pbdf.nijmegen.ageLimits.over12'],
['pbdf.gemeente.personalData.over12'],
['pbdf.pilot-amsterdam.idcard.over12'],
['pbdf.pilot-amsterdam.passport.over12'],
],
],
],
Expand Down

0 comments on commit 6bd2fe3

Please sign in to comment.