diff options
author | Danijel Andjelkovic <adanijel99@gmail.com> | 2022-03-10 01:40:20 +0100 |
---|---|---|
committer | Danijel Andjelkovic <adanijel99@gmail.com> | 2022-03-10 01:40:20 +0100 |
commit | 066a7e00b9479d98abc3076ff3ea6c0f5ec2fcc5 (patch) | |
tree | 347bf5452afd91373b655b4bd95cf61a2275bcb9 /frontend/src/app/_services | |
parent | 8ed7debac7ba96babcbdee538f4db009afd6e340 (diff) |
Promenio email na username za login i povezao login/register sa backendom.
Diffstat (limited to 'frontend/src/app/_services')
-rw-r--r-- | frontend/src/app/_services/auth.service.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/app/_services/auth.service.ts b/frontend/src/app/_services/auth.service.ts index 7129b95b..c96c2dae 100644 --- a/frontend/src/app/_services/auth.service.ts +++ b/frontend/src/app/_services/auth.service.ts @@ -18,7 +18,7 @@ export class AuthService { } register(user: any) { - return this.http.post(`${API_SETTINGS.apiURL}/auth/register`, user); + return this.http.post(`${API_SETTINGS.apiURL}/auth/register`, { ...user }, { responseType: 'text' }); } isAuthenticated(): boolean { |