1(function () { 2 const validatorHandler = $('#login-form').validate({ 3 submitHandler: function (form, event) { 4 let userName = $('#user_name').val(); 5 let userPass = $('#user_pass').val(); 6 $.post(BASE_URL + 'login', { 7 user_name: userName, 8 user_pass: userPass 9 }, res => { 10 if (res.status) { 11 location = BASE_URL; 12 } else { 13 validatorHandler.showErrors({ 14 'user_pass': errors.invalid_username_or_password 15 }); 16 } 17 }, 'json'); 18 }, 19 rules: { 20 user_name: { 21 required: true, 22 email: true 23 }, 24 user_pass: { 25 required: true, 26 minlength: 6 27 } 28 }, 29 messages: { 30 user_name: { 31 required: errors.user_name, 32 email: errors.email 33 }, 34 user_pass: { 35 required: errors.user_pass, 36 minlength: errors.minlength 37 } 38 } 39 }); 40})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.