Please enter your email address and we will send you instructions to reset your password.
(function($){
$('#wpabstracts-resetpw').on('click', function(e){ e.preventDefault(); var username = $('#wpabstracts-email').val(); var nonce = $('#wpabstracts_lost_password_nonce').val();
if(!username){ $('#wpabstracts-alert').text(__('Please enter your username or email address to reset your password.', 'wpabstracts')).show(); return; }
var data = { action: 'wpa_lostpassword', nonce: nonce, user_login: username };
$.post(wpabstracts.ajaxurl, data).done(function(resp){ var response = JSON.parse(resp); if(response.success){ $('#wpabstracts-alert').removeClass('alert-danger').addClass('alert-info').text(response.message).show(); }else{ $('#wpabstracts-alert').text(response.message).show(); } });
}); })(jQuery);