Website Logo
$.ajax({ url: 'https://caprieasy.com/verify-email-otp', type: 'POST', data: { _token: 'fvGolq1HmSREH64FDKIK30Nbq0o62QZzCztUNa8T', email: email, otp: otp }, beforeSend: function() { $('#verifyEmailOtpBtn').text('Verifying...').attr('disabled', true); }, success: function(response) { verifiedEmail = true; $('#emailVerifyMessage').removeClass('d-none'); $('#verifyEmailOtpBtn').text('Verified').attr('disabled', true); alert("Email verified successfully."); }, error: function(xhr) { $('#verifyEmailOtpBtn').text('Verify Code').attr('disabled', false); alert(xhr.responseJSON?.message ?? "OTP verification failed."); } }); }); });