fix(oauth2): parse params properly for casdoor in redirect (#8149)
Co-authored-by: Tim Lai <timothy.lai@smartbear.com>
This commit is contained in:
committed by
GitHub
parent
a6e05e5c7e
commit
7e65155a7b
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user