otp code uncommented
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user