From 739cf57f18647810dd0761da042455774a46ef0c Mon Sep 17 00:00:00 2001 From: jansa <jansa@techware.in> Date: Fri, 23 Aug 2019 17:00:19 +0530 Subject: [PATCH] social login --- application/controllers/Webservices.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/application/controllers/Webservices.php b/application/controllers/Webservices.php index 2afd44e..cf2ec03 100644 --- a/application/controllers/Webservices.php +++ b/application/controllers/Webservices.php @@ -2869,7 +2869,16 @@ if(empty($custReg)){ echo json_encode($respArr);exit; } - if($custReg == '1' || $custReg == '2'){ + if($custReg == '2'){ + $respArr['status'] = '0'; + $respArr['message'] = 'Email Id Already Exist'; + echo json_encode($respArr);exit; + } else if($custReg == '3'){ + $respArr['status'] = '0'; + $respArr['message'] = 'Phone Number Already Exist'; + echo json_encode($respArr);exit; + } + else if($custReg == '1'){ $respArr = $this->getUserDetails($postData); } }else{ -- libgit2 0.27.1