Skip to content

Commit 8a5af0b

Browse files
author
Sachin Maheshwari
committed
parsing html in alert message
1 parent 514271a commit 8a5af0b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

web-assets/auth0/dev-tenant/rules/custom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function (user, context, callback) {
4747
let tcsso = res.result.content.regSource || '';
4848

4949
// block wipro/topgear contractor user
50-
const topgearBlockMessage = "Topgear can be accessed only by Wipro Employees. If you are a Wipro employee and not able to access, drop an email to ask.topgear@wipro.com with the error message";
50+
const topgearBlockMessage = 'Topgear can be accessed only by Wipro Employees. If you are a Wipro employee and not able to access, drop an email to ask.topgear@wipro.com with the error message';
5151
if (roles.indexOf(configuration.TOPGEAR_CONTRACTOR_ROLE) > -1) {
5252
return callback(topgearBlockMessage, user, context);
5353
}

web-assets/js/setupAuth0WithRedirect.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,9 +634,9 @@ const authSetup = function () {
634634
function showLoginError(message, linkUrl) {
635635
try {
636636
document.getElementById("page-title-heading").innerText = "Alert";
637-
var messageElement = document.createElement("span");
638-
messageElement.appendChild(document.createTextNode(message));
639-
document.getElementById("loading_message_p").innerHTML = messageElement.innerText + " <a href=" + linkUrl + ">click here</a>";
637+
//var messageElement = document.createElement("span");
638+
//messageElement.appendChild(document.createTextNode(message));
639+
document.getElementById("loading_message_p").innerHTML = message + " <a href=" + linkUrl + ">click here</a>";
640640
} catch (err) {
641641
logger("Error in changing loading message: ", err.message)
642642
}

0 commit comments

Comments
 (0)