$(function() {
	$('#frmForgottenPassword').on('submit', function(e) {
		CustomerPortal.submitForm(
			RouterAPI.ResetPasswordController.requestPasswordReset().url,
			'POST',
			'#frmForgottenPassword',
			'#msgAlert',
			function(response) {
				CustomerPortal.setNotification(
					'#msgAlert',
					'Instructions to change your password have been sent to ' + $('#email').val(),
					'success'
				);
			}
		);
		return false;
	});

	$('#email').focus();
});
