fix changes
This commit is contained in:
@@ -761,7 +761,8 @@ class AuthController extends Controller
|
||||
'title' => 'Mail from ItSolutionStuff.com',
|
||||
'body' => 'This is for testing email using smtp.'
|
||||
];
|
||||
|
||||
Mail::to($validated['email2'])->send(new OtpMail($mailData, $otp));
|
||||
|
||||
$insertOtp = RegistrationOtp::insertGetId([
|
||||
'contact_number'=>$request->contact_number2,
|
||||
// 'contact_otp'=>$mobile_otp,
|
||||
@@ -770,7 +771,6 @@ class AuthController extends Controller
|
||||
'email_otp'=>$otp,
|
||||
'email_expire_at'=>Carbon::now()->addMinutes('2'),
|
||||
]);
|
||||
Mail::to($validated['email2'])->send(new OtpMail($mailData, $otp));
|
||||
// $this->thirdPartyOTP($validated['contact_number2'], $mobile_otp);
|
||||
// Mail::to('yadavritikesh29@gmail.com')->send(new OtpMail($mailData, $otp));
|
||||
return response()->json(['status' => 200, 'message' => 'OTP has been sent to your email']);
|
||||
@@ -818,7 +818,7 @@ class AuthController extends Controller
|
||||
if ($userEmailOtpData) {
|
||||
$otp = rand(1000,9999);
|
||||
$this->thirdPartyOTP($userEmailOtpData->contact_number, $otp);
|
||||
RegistrationOtp::where('email', $emailToAdd)->update(['contact_otp'=>$otp,'contact_expire_at'=>Carbon::now()->addMinutes(2)]);
|
||||
RegistrationOtp::where('email', $emailToAdd)->update(['contact_otp'=>$ ,'contact_expire_at'=>Carbon::now()->addMinutes(2)]);
|
||||
return response()->json(['status' => 200, 'message' => 'Email OTP verified Successfully']);
|
||||
}
|
||||
}
|
||||
@@ -883,7 +883,7 @@ class AuthController extends Controller
|
||||
if ($userEmailOtpData) {
|
||||
$otp = rand(1000,9999);
|
||||
$this->thirdPartyOTP($userEmailOtpData->contact_number, $otp);
|
||||
RegistrationOtp::where('email', $emailToAdd)->update(['contact_otp'=>rand(1000,9999),'contact_expire_at'=>Carbon::now()->addMinutes(2)]);
|
||||
RegistrationOtp::where('email', $emailToAdd)->update(['contact_otp'=>$otp,'contact_expire_at'=>Carbon::now()->addMinutes(2)]);
|
||||
return response()->json(['status' => 200, 'message' => 'Email OTP verified Successfully']);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user