fix register
This commit is contained in:
parent
a59ee02388
commit
3322527f5e
@ -88,10 +88,12 @@ export class RegisterComponent implements OnInit {
|
|||||||
]
|
]
|
||||||
|
|
||||||
if(this.model.email) {
|
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) {
|
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) => {
|
this.userService.register(this.model).subscribe((result: any) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user