mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 20:50:19 +08:00
Add Link API.
This commit is contained in:
@ -111,6 +111,9 @@ export function getOAuthGetParameters(params) {
|
||||
export function getQueryParamsToState(applicationName, providerName, method) {
|
||||
let query = window.location.search;
|
||||
query = `${query}&application=${applicationName}&provider=${providerName}&method=${method}`;
|
||||
if (method === "link") {
|
||||
query = `${query}&from=${window.location.pathname}`;
|
||||
}
|
||||
return btoa(query);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user