mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
Encode sign-in params.
This commit is contained in:
parent
97e214c3d3
commit
2f526e2b5f
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user