From 2f526e2b5f16689adcd0ee520d8c4b318449f122 Mon Sep 17 00:00:00 2001 From: kunw Date: Wed, 3 May 2017 16:03:27 +0800 Subject: [PATCH] Encode sign-in params. --- src/ui_ng/src/app/shared/session.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));