GWM : email response issue
This commit is contained in:
parent
868ee658a2
commit
198b557cf3
@ -66,7 +66,7 @@ class AgentAuthController extends ResourceController
|
||||
$mail_content = $otp . ' is your verification code for Nhance.';
|
||||
|
||||
$EmailResult = send_login_otp( $email , $subject , $mail_content);
|
||||
|
||||
|
||||
if ($EmailResult['status'] == 'success') {
|
||||
$result = ['agent_verification' => true, 'message' => "Verified Successfully"];
|
||||
return $this->respond(['status' => 'success', 'code' => 200, 'data' => $result], 200);
|
||||
|
||||
@ -51,9 +51,7 @@ if (!function_exists('send_login_otp')) {
|
||||
|
||||
$resp = json_decode($response, true);
|
||||
|
||||
|
||||
|
||||
if ($httpCode === 200) {
|
||||
if (isset($resp['data'][0]['message']) && $resp['data'][0]['message'] == 'Email request received') {
|
||||
log_message('debug', 'OTP Send Success to agent , email = ' . $to_email);
|
||||
return ['status' => 'success', 'code' => 200, 'message' => 'Send Success'];
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user