diff --git a/src/app/register/register.ts b/src/app/register/register.ts index 416d1e7..5421491 100644 --- a/src/app/register/register.ts +++ b/src/app/register/register.ts @@ -43,6 +43,7 @@ export class RegisterPage { onSubmit() { let formUser = new User(this.form.value); formUser.id = Util.newGuid(); + formUser.signupSource = 'web'; this.log.debug(formUser); this.userService.postUser(formUser) diff --git a/src/app/shared/user.ts b/src/app/shared/user.ts index ddde748..57b60bc 100644 --- a/src/app/shared/user.ts +++ b/src/app/shared/user.ts @@ -8,6 +8,7 @@ export class User { password: string; agreeToTerms: boolean; emailVerified: boolean; + signupSource: string; constructor(options: any = {}) { this.id = options.id || this.id; this.inserted = options.inserted ? new Date(options.inserted) : null; @@ -18,5 +19,6 @@ export class User { this.password = options.password || this.password; this.agreeToTerms = options.agreeToTerms || false; this.emailVerified = options.emailVerified || this.emailVerified; + this.signupSource = options.signupSource || this.signupSource; } } \ No newline at end of file