BMC: issue fixed for phoneOrEmailAddres type

This commit is contained in:
Palash Biswas 2023-01-19 18:13:46 +05:30
parent ba7ebf68c1
commit efbbfe29eb

View File

@ -487,8 +487,8 @@ namespace BCS.BMC.Controllers
var contents = await response.Content.ReadAsStringAsync(); var contents = await response.Content.ReadAsStringAsync();
ForgotPasswordUserResponse result = JsonConvert.DeserializeObject<ForgotPasswordUserResponse>(contents); ForgotPasswordUserResponse result = JsonConvert.DeserializeObject<ForgotPasswordUserResponse>(contents);
var emailOrPhone = result.result; var emailOrPhone = result.result;
int num; long num;
bool isMobile = Int32.TryParse(emailOrPhone,out num); bool isMobile = Int64.TryParse(emailOrPhone,out num);
if (isMobile) if (isMobile)
{ {
result.type = "phoneNo"; result.type = "phoneNo";