Skip to content

Commit

Permalink
Fix JS regex use to validate IRIS IAM strings
Browse files Browse the repository at this point in the history
Co-authored-by: ineilson <[email protected]>
  • Loading branch information
gregcorbett and ineilson committed Nov 29, 2023
1 parent bc68c0b commit 927ede8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions htdocs/web_portal/javascript/linking.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ function getRegExIdString() {

// End with @iris.iam.ac.uk
} else if (authType === "IRIS IAM - OIDC") {
// var regExIdString = /^([a-f0-9]{8}\-[a-f0-9]{4}\-[a-f0-9]{4}\-[a-f0-9]{4}\-[a-f0-9]{12})@iris\-iam\.ac\.uk$/;
var regExIdString = /^.+@iris\-iam\.ac\.uk$/;
// var regExIdString = /^([a-f0-9]{8}\-[a-f0-9]{4}\-[a-f0-9]{4}\-[a-f0-9]{4}\-[a-f0-9]{12})@iris\-iam\.stfc\.ac\.uk$/;
var regExIdString = /^.+@iris\-iam\.stfc\.ac\.uk\/$/;

// End with @egi.eu
} else if (authType === "EGI Proxy IdP") {
Expand Down Expand Up @@ -270,4 +270,4 @@ function formatEmail() {
} else if (empty) {
$('#emailError').text("Please enter the account's email");
}
}
}

0 comments on commit 927ede8

Please sign in to comment.