Forgot Password

<title> | Grow Your Business window.jQuery || document.write('<script src="http://growyourbusiness.com.au/javascripts/jquery.1.11.3.min.js"><\/script>')

Forgot Password

Please enter your email address below. We will send you an email with instructions on how to reset your password.

// fastclick window.addEventListener('load', function() { FastClick.attach(document.body); }, false); $(function() { // login button $('#btn-gyb-submit').on('click', function() { if($('#email').val() == '') { notify('Invalid email address.', 'error'); return false; } else { var form = new FormData(); form.append("email", $('#email').val()); var settings = { "async": true, "crossDomain": true, "url": "http://www.growyourbusiness.com.au/php/api-reset-password.php", "method": "POST", "processData": false, "contentType": false, "mimeType": "multipart/form-data", "data": form } $.ajax(settings).done(function(response) { if(response == '404') { notify('Email address not found.', 'error'); return false; } else { var listOfUserDetails = JSON.parse(response); $(listOfUserDetails).each(function(key,value) { $('.user-email').html(value.email); $('#modal').modal('show'); }); } }); } }); }); function getUrlParameter(sParam) { var sPageURL = decodeURIComponent(window.location.search.substring(1)), sURLVariables = sPageURL.split('&'), sParameterName, i; for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVariables[i].split('='); if (sParameterName[0] === sParam) { return sParameterName[1] === undefined ? true : sParameterName[1]; } } } function notify(message, type) { noty({ text : message, type : type, animation: { open: 'animated bounceInDown', close: 'animated bounceOutUp', easing: 'swing', speed: 500 } }); }