CHANGE_ added error message in login apis : GWM

This commit is contained in:
bitbucket 2024-04-26 11:10:42 +05:30
parent 3091fe3154
commit 42b1f2b934

View File

@ -80,8 +80,8 @@ class RestAuthenticationController extends AdminController
$result = ['user_verification' => true , 'otp'=>$randomNumber];
return $this->respond(['status' => 'success','code' => 200,'data' => $result],200);
} else {
$result = ['user_verification' => false];
return $this->respond(['status' => 'failed','code' => 404,'data' => "User not found"],200);
$result = ['user_verification' => false , 'message' => "User not found"];
return $this->respond(['status' => 'failed','code' => 404,'data' => $result],200);
}
} catch (\Throwable $th) {
@ -139,8 +139,8 @@ class RestAuthenticationController extends AdminController
$result = ['user_verification' => true , 'otp'=>$randomNumber];
return $this->respond(['status' => 'success','code' => 200,'data' => $result],200);
} else {
$result = ['user_verification' => false];
return $this->respond(['status' => 'failed','code' => 404,'data' => "User not found"],200);
$result = ['user_verification' => false , 'message' => "User not found"];
return $this->respond(['status' => 'failed','code' => 404,'data' => $result],200);
}
} catch (\Throwable $th) {