Skip to content

Commit

Permalink
workaround for username in register #37
Browse files Browse the repository at this point in the history
  • Loading branch information
MurhafSousli committed Jul 24, 2017
1 parent f5513b0 commit 087403f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/auth/services/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

0 comments on commit 087403f

Please sign in to comment.