otp code uncommented

This commit is contained in:
Ritikesh yadav
2024-04-02 17:39:17 +05:30
parent 16c48f4b0b
commit f7c9b09a6d

View File

@@ -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',