Skip to content

Commit

Permalink
Implimented ueid look js fix for security issue (#4641)
Browse files Browse the repository at this point in the history
  • Loading branch information
anagradova authored Jan 22, 2025
1 parent 9be7348 commit d4e84d1
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions backend/static/js/check-ueid.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,21 @@ function showValidUeiInfo() {
const auditeeName = document.getElementById('auditee_name');
const ueiInfoEl = document.createElement('div');

ueiInfoEl.innerHTML = `
<dl data-testid="uei-info">
<dt>Unique Entity ID</dt>
<dd>${auditeeUei}</dd>
<dt>Auditee name</dt>
<dd>${auditeeName.value}</dd>
</dl>
`;
let dl; let dtUei; let ddUei; let dtName; let ddName;
dl = document.createElement('dl');
dtUei = document.createElement('dt');
ddUei = document.createElement('dd');
dtName = document.createElement('dt');
ddName = document.createElement('dd');

dl.setAttribute('data-testid', 'uei-info');
dtUei.textContent = 'Unique Entity ID';
ddUei.textContent = auditeeUei;
dtName.textContent = 'Auditee name';
ddName.textContent = auditeeName.value;

dl.append(dtUei,ddUei,dtName,ddName);
ueiInfoEl.appendChild(dl);

auditeeName.removeAttribute('disabled');
auditeeName.parentNode.setAttribute('hidden', 'hidden');
Expand Down

0 comments on commit d4e84d1

Please sign in to comment.