You've already forked openaccounting-web
forked from cybercinch/openaccounting-web
add signupSource
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user