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();
|
||||
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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user