fix(oauth2): parse params properly for casdoor in redirect (#8149)

Co-authored-by: Tim Lai <timothy.lai@smartbear.com>
This commit is contained in:
Fernando López Guevara
2022-08-12 13:53:34 -03:00
committed by GitHub
parent a6e05e5c7e
commit 7e65155a7b
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@
var isValid, qp, arr;
if (/code|token|error/.test(window.location.hash)) {
qp = window.location.hash.substring(1);
qp = window.location.hash.substring(1).replace('?', '&');
} else {
qp = location.search.substring(1);
}