PHP Classes

File: account/assets/js/verify.js

Recommend this page to a friend!
  Classes of Mohamed Elbahja   PHP Secure Login Library   account/assets/js/verify.js   Download  
File: account/assets/js/verify.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Secure Login Library
Login users and start sessions in a MySQL database
Author: By
Last change:
Date: 7 years ago
Size: 1,321 bytes
 

Contents

Class file image Download
$(document).ready(function() { $("#verify").validate({ rules: { email: { required: true, email: true }, }, submitHandler: function() { var data = $('#verify').serialize(); $.ajax({ type: 'POST', url: 'submit/verify.php', data: data, beforeSend: function() { $("#form-message").fadeOut('fast'); $("#btn-submit").html(' Sending... '); $("#btn-submit").attr('disabled', true); }, success: function(r) { if (r === 'success') { $("#btn-submit").attr('disabled', true); $("email").remove(); $(".form-signin").attr('align', 'center'); $(".form-signin").html('<div class="btn btn-info">please check your email</div>'); } else { $("#form-message").fadeIn(0, function() { $("#form-message").html('<div class="alert btn-danger"> ' + r + ' </div>'); $("#btn-submit").html(' Send verification link'); $("#btn-submit").attr('disabled', false); }); } } }); return false; } }); });