fix register

This commit is contained in:
Lurkars 2021-03-14 19:57:37 +01:00
parent 3322527f5e
commit bb96636571

View File

@ -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) => {