aboutsummaryrefslogtreecommitdiff
path: root/frontend/src
diff options
context:
space:
mode:
authorOgnjen Cirkovic <ciraboxkg@gmail.com>2022-05-04 21:27:16 +0200
committerOgnjen Cirkovic <ciraboxkg@gmail.com>2022-05-04 21:27:16 +0200
commit87aa75b968b2cf7cc322c50e83661b3bf3e463ca (patch)
tree036f6f9a1e23cc1366153eb5539d95b5c439d7a7 /frontend/src
parenta0679ab22577f37e729b84610918b0fd757b6b17 (diff)
Omoguceno da se rad gostu sacuva, ako se on registruje pre nego sto izgubi sesiju.
Diffstat (limited to 'frontend/src')
-rw-r--r--frontend/src/app/_services/auth.service.ts2
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 68c29182..cc5ad688 100644
--- a/frontend/src/app/_services/auth.service.ts
+++ b/frontend/src/app/_services/auth.service.ts
@@ -22,7 +22,7 @@ export class AuthService {
}
register(user: any) {
- return this.http.post(`${Configuration.settings.apiURL}/auth/register`, { ...user }, { responseType: 'text' });
+ return this.http.post(`${Configuration.settings.apiURL}/auth/register`, { ...user },{ headers: this.authHeader() , responseType: 'text' });
}
getGuestToken() {