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();
ForgotPasswordUserResponse result = JsonConvert.DeserializeObject<ForgotPasswordUserResponse>(contents);
var emailOrPhone = result.result;
int num;
bool isMobile = Int32.TryParse(emailOrPhone,out num);
long num;
bool isMobile = Int64.TryParse(emailOrPhone,out num);
if (isMobile)
{
result.type = "phoneNo";