From 087403f40bd44cd8c925a7eeea34ff584ce822c6 Mon Sep 17 00:00:00 2001 From: Murhaf Sousli Date: Mon, 24 Jul 2017 14:23:56 +0300 Subject: [PATCH] workaround for username in register #37 --- src/auth/services/auth.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/auth/services/auth.service.ts b/src/auth/services/auth.service.ts index d06cfba..3b47e72 100644 --- a/src/auth/services/auth.service.ts +++ b/src/auth/services/auth.service.ts @@ -14,6 +14,8 @@ export class AuthService { } register(form: RegisterForm) { - return this.fireHttp.post('/newUserRequests', form).map(res => res.json()); + /** TODO: remove the hardcoded username when the registration design is complete + * issue: https://github.com/EyeSeeTea/FIRE-WiFiCalling/issues/37 */ + return this.fireHttp.post('/newUserRequests', { user: { ...form, username: 'hardcoded' } }).map(res => res.json()); } }