Browse Source

BMC: issue fixed for phoneOrEmailAddres type

feature/ForgotPasswordFunctionality
Palash Biswas 2 years ago
parent
commit
efbbfe29eb
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      BCS.BMC/src/BCS.BMC.Web.Core/Controllers/TokenAuthController.cs

+ 2
- 2
BCS.BMC/src/BCS.BMC.Web.Core/Controllers/TokenAuthController.cs 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";


Loading…
Cancel
Save