mirror of
https://github.com/discourse/discourse.git
synced 2025-06-14 19:29:21 +08:00
FIX: stricter window.opener
checks (#6578)
This commit is contained in:
@ -4,7 +4,11 @@
|
|||||||
).dataset;
|
).dataset;
|
||||||
const parsedAuthResult = JSON.parse(authResult);
|
const parsedAuthResult = JSON.parse(authResult);
|
||||||
|
|
||||||
if (!window.opener) {
|
if (
|
||||||
|
!window.opener ||
|
||||||
|
!window.opener.Discourse ||
|
||||||
|
!window.opener.Discourse.authenticationComplete
|
||||||
|
) {
|
||||||
localStorage.setItem("lastAuthResult", authResult);
|
localStorage.setItem("lastAuthResult", authResult);
|
||||||
window.location.href = `${baseUrl}?authComplete=true`;
|
window.location.href = `${baseUrl}?authComplete=true`;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user