Skip to content

Commit

Permalink
fix(oauth2): parse params properly for casdoor in redirect (#8149)
Browse files Browse the repository at this point in the history

Co-authored-by: Tim Lai <timothy.lai@smartbear.com>
  • Loading branch information
fernandolguevara and tim-lai committed Aug 12, 2022
1 parent a6e05e5 commit 7e65155
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev-helpers/oauth2-redirect.html
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/oauth2-redirect.html
Expand Up @@ -13,7 +13,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);
}
Expand Down

0 comments on commit 7e65155

Please sign in to comment.