Skip to content

Commit 5d8d4a6

Browse files
author
Sachin Maheshwari
committed
loading message change if login/logout action is called.
1 parent 843b1eb commit 5d8d4a6

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

web-assets/js/setupAuth0WithRedirect.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const authSetup = function () {
6161

6262
const init = function () {
6363
correctOldUrl();
64+
changeWindowMessage();
6465
createAuth0Client({
6566
domain: domain,
6667
client_id: clientId,
@@ -360,6 +361,17 @@ const authSetup = function () {
360361

361362
}
362363

364+
function changeWindowMessage() {
365+
if (!returnAppUrl || returnAppUrl == 'undefined') {
366+
try {
367+
document.getElementById("page-title-heading").innerHTML = "Alert";
368+
document.getElementById("loading_message_p").innerHTML = "Login/Logout action is not called. Please check return url (retUrl) value in query parameters."
369+
} catch (err) {
370+
logger("Error in changing loading message: ", err.message)
371+
}
372+
}
373+
}
374+
363375
// execute
364376
init();
365377
};

web-assets/static-pages/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<main id="main" class="page-main">
3636
<a id="contentarea" tabindex="-1"></a>
3737
<h1 id="page-title-heading" class="page-title-heading">loading...</h1>
38-
<p class="page-description">
38+
<p class="page-description" id="loading_message_p">
3939
Wait Login/Logout processing ...
4040
</p>
4141
</main>

0 commit comments

Comments
 (0)