fix: URL encode params on Platform API call (#3929)

Add URL encoding for the params in platform API calls.

Fixes: product#307
Fixes: #2186
This commit is contained in:
Pranav Raj S
2022-02-08 04:47:36 +05:30
committed by GitHub
parent 375d943a48
commit 2a07eae69f
3 changed files with 7 additions and 4 deletions

View File

@@ -133,7 +133,9 @@ export default {
login() {
this.loginApi.showLoading = true;
const credentials = {
email: this.email ? this.email : this.credentials.email,
email: this.email
? decodeURIComponent(this.email)
: this.credentials.email,
password: this.credentials.password,
sso_auth_token: this.ssoAuthToken,
};