fix register

This commit is contained in:
Lurkars 2021-03-14 19:50:25 +01:00
parent a59ee02388
commit 3322527f5e

View File

@ -88,10 +88,12 @@ export class RegisterComponent implements OnInit {
]
if(this.model.email) {
this.model.profileFields.push({"name": "email", "type": "EMAIL", "visibility": "PRITAVE", "value": this.model.email})
this.model.profileFields.push({"name": "email", "type": "EMAIL", "visibility": "PRITAVE", "value": this.model.email});
delete this.model.email;
}
if(this.model.primaryEmail) {
this.model.profileFields.push({"name": "primaryEmail", "type": "BOOL", "visibility": "PRITAVE", "value": this.model.primaryEmail})
this.model.profileFields.push({"name": "primaryEmail", "type": "BOOL", "visibility": "PRITAVE", "value": this.model.primaryEmail});
delete this.model.primaryEmail;
}
this.userService.register(this.model).subscribe((result: any) => {