decoded plaintext credentials before params get re-encoded in ssApiClient (#862)
This commit is contained in:
parent
ca58551b94
commit
ae65922253
1 changed files with 2 additions and 2 deletions
|
@ -295,12 +295,12 @@ export const ssApiClient = (args: {
|
|||
const token = server.credential;
|
||||
const params = token.split(/&?\w=/gm);
|
||||
|
||||
authParams.u = server.username;
|
||||
authParams.u = decodeURIComponent(server.username);
|
||||
if (params?.length === 4) {
|
||||
authParams.s = params[2];
|
||||
authParams.t = params[3];
|
||||
} else if (params?.length === 3) {
|
||||
authParams.p = params[2];
|
||||
authParams.p = decodeURIComponent(params[2]);
|
||||
}
|
||||
} else {
|
||||
baseUrl = url;
|
||||
|
|
Reference in a new issue