Skip to content

Commit bfd7f6b

Browse files
committed
Update index.html
1 parent e34a43c commit bfd7f6b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/pages/login_info/index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@
4848

4949
ignoreBtn.onclick = () => {
5050
errorModal.close()
51-
// Redirect to the final destination without credentials, mimicking the old faulty behavior but with user consent.
52-
window.location.href = decodeURIComponent(redirectUrl)
51+
const targetUrl = new URL(decodeURIComponent(redirectUrl))
52+
targetUrl.searchParams.set('login_status', 'failed')
53+
targetUrl.searchParams.set('reason', error.message)
54+
window.location.href = targetUrl.href
5355
}
5456
}
5557
</script>
@@ -63,6 +65,7 @@
6365
<h3 class="font-bold text-lg">Credential Transfer Error</h3>
6466
<p class="py-4" id="error_modal_message"></p>
6567
<div class="modal-action">
68+
<button class="btn btn-primary" id="retry_btn">Retry</button>
6669
<button class="btn" id="ignore_and_continue_btn">Ignore and Continue</button>
6770
</div>
6871
</div>

0 commit comments

Comments
 (0)