Where Does Phone Number's been stored ( UmbracoIdentity )
I'm Trying To retrieve Phone Number after user Register but it returns Null I tried to check database to see its field but I found no column refers to Phone Number and there's no property for phone number in umbracoMember Document Type
public async Task<UserInfoViewModel> GetUserInfoAsync(IPrincipal user)
{
var member = await UserManager.FindByIdAsync(user.Identity.GetUserId<int>());
var userData = ContentQuery.Content(int.Parse(GetUserDataId(user.Identity.GetUserId<int>())))?.ToObject<UserData>();
return new UserInfoViewModel()
{
Name = member.Name,
Email = member.Email,
PhoneNumber = member.PhoneNumber,
Address = userData.Address,
City = userData.City,
ResidenceNumber = userData.ResidenceNumber,
ProfilePicture = userData.ProfilePicture
};
}
This Method returns
{
"Name": "Ibrahim Ahmed Badr",
"Email": "[email protected]",
"ResidenceNumber": 12100479,
"PhoneNumber": null,
"City": "Cairo",
"Address": "Al-Seha street Ain Shams",
"ProfilePicture": null
}
Where Does Phone Number's been stored ( UmbracoIdentity )
I'm Trying To retrieve Phone Number after user Register but it returns Null I tried to check database to see its field but I found no column refers to Phone Number and there's no property for phone number in umbracoMember Document Type
This Method returns
"PhoneNumber": null,
hope someone can help
is working on a reply...