BMC: issue fixed for phoneOrEmailAddres type
This commit is contained in:
parent
ba7ebf68c1
commit
efbbfe29eb
@ -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";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user