diff --git a/src/ui_ng/src/app/shared/session.service.ts b/src/ui_ng/src/app/shared/session.service.ts index 75490bbe7..a3c18904c 100644 --- a/src/ui_ng/src/app/shared/session.service.ts +++ b/src/ui_ng/src/app/shared/session.service.ts @@ -73,7 +73,7 @@ export class SessionService { body.set('password', signInCredential.password); //Trigger Http - return this.http.post(signInUrl, body.toString(), { headers: this.formHeaders }) + return this.http.post(signInUrl, encodeURIComponent(body.toString()), { headers: this.formHeaders }) .toPromise() .then(() => null) .catch(error => this.handleError(error));