Commit 11b14de9 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

feat: add support for pbdf.pilot-amsterdam credential types

parent e4a25d57
Pipeline #59645 passed with stage
in 7 seconds
......@@ -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();
......
......@@ -12,6 +12,8 @@ $sprequests = [
['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 @@ $sprequests = [
['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 @@ $sprequests = [
['pbdf.pbdf.ageLimits.over12'],
['pbdf.nijmegen.ageLimits.over12'],
['pbdf.gemeente.personalData.over12'],
['pbdf.pilot-amsterdam.idcard.over12'],
['pbdf.pilot-amsterdam.passport.over12'],
],
],
],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment