From f7c9b09a6d35ac491d8136d0b4a3bc3299677e99 Mon Sep 17 00:00:00 2001 From: Ritikesh yadav Date: Tue, 2 Apr 2024 17:39:17 +0530 Subject: [PATCH] otp code uncommented --- app/Http/Controllers/Frontend/ProfileController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Frontend/ProfileController.php b/app/Http/Controllers/Frontend/ProfileController.php index 7864118..5e5fd57 100644 --- a/app/Http/Controllers/Frontend/ProfileController.php +++ b/app/Http/Controllers/Frontend/ProfileController.php @@ -177,7 +177,7 @@ class ProfileController extends Controller ]; Session::put('newEmail', $request->newEmail); Session::put('otp', $otp); - // Mail::to($request->newEmail)->send(new OtpMail($mailData,$otp)); + Mail::to($request->newEmail)->send(new OtpMail($mailData, $otp)); return response()->json([ 'status' => 200, 'message' => 'OTP sended on enter email', @@ -212,7 +212,7 @@ class ProfileController extends Controller $otp = rand(1000, 9999); Session::put('contact_number', $request->newcontact_number); Session::put('mobile_otp', $otp); - // $sendOTPMessage = (new sendOTP)->thirdPartyOTP($request->contact_number, $otp); + $sendOTPMessage = (new sendOTP)->thirdPartyOTP($request->contact_number, $otp); return response()->json([ 'status' => 200, 'message' => 'OTP sended to contact number',