From 11b14de9351a509df561e93ee4b5abde1e9e20ca Mon Sep 17 00:00:00 2001 From: Sietse Ringers Date: Tue, 3 May 2022 11:04:12 +0200 Subject: [PATCH] feat: add support for pbdf.pilot-amsterdam credential types --- js/main.js | 3 ++- start_session.php | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index fdfcac3..da9ed92 100644 --- a/js/main.js +++ b/js/main.js @@ -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(); diff --git a/start_session.php b/start_session.php index e5e8404..83c8c41 100644 --- a/start_session.php +++ b/start_session.php @@ -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'], ], ], ], @@ -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'], ], ], ], @@ -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'], ], ], ],