Encode sign-in params.

This commit is contained in:
kunw 2017-05-03 16:03:27 +08:00
parent 97e214c3d3
commit 2f526e2b5f

View File

@ -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));