Reset Password

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

Reset Password

Please enter your new password.

// fastclick window.addEventListener('load', function() { FastClick.attach(document.body); }, false); $(function() { // login button $('#btn-gyb-reset').on('click', function() { var password = $('#password').val(); var password2 = $('#password-2').val(); if(password != '' || password2 != '') { if(password == password2) { var form = new FormData(); form.append("id", getUrlParameter('uid')); form.append("password", password); var settings = { "async": true, "crossDomain": true, "url": "http://www.growyourbusiness.com.au/php/api-update-password.php", "method": "POST", "processData": false, "contentType": false, "mimeType": "multipart/form-data", "data": form } $.ajax(settings).done(function(response) { if(response != '404') { $('#modal-congratulation').modal('show'); } }); } else { notify('Password does not match the confirm password.', 'error'); } } else { notify('Please fill all fields.', 'error'); } }); }); 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 } }); }