Skip to content

Commit

Permalink
Merge pull request #1947 from scireum/feature/mbo/OX-10835
Browse files Browse the repository at this point in the history
Changes to use input pattern for SAML fingerprint instead of js script tag
  • Loading branch information
scireum-mbo authored Feb 29, 2024
2 parents bb50c52 + e4ec18b commit 6c24e35
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,10 @@
labelKey="TenantData.samlIssuerName" helpKey="TenantData.samlIssuerName.help"/>
<t:textfield class="col-12"
name="tenantData_samlFingerprint"
id="tenantData_samlFingerprint"
value="@tenant.getTenantData().getSamlFingerprint()"
pattern="^[a-zA-Z0-9,]*$"
labelKey="TenantData.samlFingerprint"
helpKey="TenantData.samlFingerprint.help"/>
<script>
const _inputElement = document.getElementById('tenantData_samlFingerprint');
_inputElement.addEventListener("input", () => {
const regex = new RegExp("[^A-Za-z0-9,]", "g")
_inputElement.value = _inputElement.value.replace(regex, "")
})
</script>
</div>
<t:formBar backButton="false"/>
</t:editForm>
Expand Down

0 comments on commit 6c24e35

Please sign in to comment.