fix register
This commit is contained in:
parent
3322527f5e
commit
bb96636571
@ -88,12 +88,10 @@ export class RegisterComponent implements OnInit {
|
||||
]
|
||||
|
||||
if(this.model.email) {
|
||||
this.model.profileFields.push({"name": "email", "type": "EMAIL", "visibility": "PRITAVE", "value": this.model.email});
|
||||
delete this.model.email;
|
||||
this.model.profileFields.push({"name": "email", "type": "EMAIL", "visibility": "PRIVATE", "value": this.model.email});
|
||||
}
|
||||
if(this.model.primaryEmail) {
|
||||
this.model.profileFields.push({"name": "primaryEmail", "type": "BOOL", "visibility": "PRITAVE", "value": this.model.primaryEmail});
|
||||
delete this.model.primaryEmail;
|
||||
this.model.profileFields.push({"name": "primaryEmail", "type": "BOOL", "visibility": "PRIVATE", "value": this.model.primaryEmail});
|
||||
}
|
||||
|
||||
this.userService.register(this.model).subscribe((result: any) => {
|
||||
|
Loading…
Reference in New Issue
Block a user