22 Sep
|
Union National Bank
|
India
22 Sep
Union National Bank
India
What is 4 plus 2
Login
Don't have an account Sign up here
Forgot your password Click here
$(.login_error).delay(7000).fadeOut(slow); $(#login_formm).submit(function(e) e.preventDefault(); $.ajax( url: https://ekam.unionbankofindia.bank.in/career/recruitment/Login/signup, type:post, dataType:json, data:recent FormData(this), processData:false, contentType:false, cache:false, async:false, success: function(res) , error: function(xhr,status,error) console.log(xhr,xhr.status); console.error(error,error); ); ); //This Script is for Password show hide const togglePassword = document.querySelector(#togglePassword); const password = document.querySelector(#password); togglePassword.addEventListener(click, function () // toggle the type attribute const type = password.getAttribute(type) === password text : password; password.setAttribute(type, type); // toggle the eye icon this.classList.toggle(fa-eye); this.classList.toggle(fa-eye-slash); ); const toggleConfirmPassword = document.querySelector(#toggleConfirmPassword); const confirm_password = document.querySelector(#confirm_password); if(toggleConfirmPassword) toggleConfirmPassword.addEventListener(click, function () // toggle the type attribute const type = confirm_password.getAttribute(type) === password text : password; confirm_password.setAttribute(type, type); // toggle the eye icon this.classList.toggle(fa-eye); this.classList.toggle(fa-eye-slash); ); var url = window.location; var base_url = url.protocol + // + url.host + / + url.pathname.split(/)[1]; $(document).ready(function() // common features used starts here //1. To disable right click $(document).bind(contextmenu,function(e) return false; ); // common feature used ends here $(#refresh_captcha).on(click, function() $.ajax( url: base_url + /recruitment/login/reset_captcha, dataType: JSON, type: POST, success: function(data) // $(#captcha_block).empty().append(data.captcha_img); // $(#captcha_enc).val(data.captcha_enc); ); ); $(#refresh_blind_captcha).on(click, function() $.ajax( url: base_url + /recruitment/Login/blind_refresh_captcha, type: POST, data: union_bank_prerana:$(#token).val(), dataType: text, success: function(data) let result=CryptoJSAesJson.decrypt(data,3a93fc6e61d04bfc4fb57586760710ceea56ea46); $(#token).val(result.token); $(#blind_captcha).html(result.question); ); ); $(#signup_form).validate( rules: applicant_first_name: required, applicant_last_name: required,
applicant_mobile_number: required: true, digits: true, minlength: 10, maxlength: 10, , applicant_email: required: true, email: true , applicant_password: required: true, minlength: 8, maxlength: 15, checkSpecial: true, , applicant_cnfm_password: required: true, minlength: 8, maxlength: 15, equalTo: #password , math_captcha: required: true, digits: true , messages: applicant_first_name: required: Please enter first name, , applicant_last_name: required: Please enter last name, , applicant_mobile_number: required: Please enter mobile number, digits: Please enter valid mobile number, minlength: Mobile number field accept only 10 digits., maxlength: Mobile number field accept only 10 digits., , applicant_email: required: Please enter email address, applicant_email: Please enter a valid email address., , applicant_password: required: Please enter password., , applicant_cnfm_password: required: Please re-enter password, equalTo : Please enter the same password again. , math_captcha: required: Please enter captcha., , , errorPlacement: function(error, element) switch (element.attr(name)) case applicant_first_name: error.insertAfter($(element).parents(div).find($(.errorFirst))); break; case applicant_last_name: error.insertAfter($(element).parents(div).find($(.errorLast))); break; case applicant_mobile_number: error.insertAfter($(element).parents(div).find($(.errorMobile))); break; case applicant_email: error.insertAfter($(element).parents(div).find($(.errorEmail))); break; case applicant_password: error.insertAfter($(element).parents(div).find($(.errorPass))); break; case applicant_cnfm_password: error.insertAfter($(element).parents(div).find($(.errorCnfmPass))); break; case math_captcha: error.insertAfter($(element).parents(div).find($(.errorCaptcha))); break; default: error.insertAfter(element); , ); jQuery.validator.addMethod(checkSpecial, function( value, element )
var sectionToCheck = value; var allFoundCharacters = sectionToCheck.match(`/^(=.*[a-z])(=.*[A-Z])(=.*d)(=.*[@$!%*&])[A-Za-zd@$!%*&]8,15$`); var valid = (/^(=.*[a-z])(=.*[A-Z])(=.*[@$!%*&])[A-Za-zd@$!%*&]8,15$/.test(value)); if (valid==false) //(=.*d) return false; return true; , please use at least one special character and one uppercase letter); var validate_login = $(#login_form).validate( rules: applicant_email: required: true, email: true , applicant_password: required: true, minlength: 8, // maxlength: 60 , math_captcha: required: true, //digits: true , messages: applicant_email: required: Please enter email address, applicant_email: Please enter a valid email address., , applicant_password: required: Please enter password., , math_captcha: required: Please enter captcha., , , errorPlacement: function(error, element) switch (element.attr(name)) case applicant_email: error.insertAfter($(element).parents(div).find($(.errorEmail))); break; case applicant_password: error.insertAfter($(element).parents(div).find($(.errorPass))); break; case math_captcha: error.insertAfter($(element).parents(div).find($(.errorCaptcha))); break; default: error.insertAfter(element); , ); $(#login_form).on(click, function() // Each time the user tries to send the data, we check // if the form is valid. if (checkFormValidity(this) && $(#login_form).valid()) var loginid=$(#email).val(); var getPass=$(#password).val(); var enc_loginid=CryptoJSAesJson.encrypt(loginid,3a93fc6e61d04bfc4fb57586760710ceea56ea46); var enc_pass=CryptoJSAesJson.encrypt(getPass,3a93fc6e61d04bfc4fb57586760710ceea56ea46); $(#loginid).val(enc_loginid); $(#password).val(enc_pass); else handleFormErrors(); validate_login.focusInvalid(); ); /** Keep track of input errors **/ var formValidation = ; function checkFormValidity(form) var formValid; // add input state to formValidation object $(form).find(input[type=text]).each(function(i) checkInputValidity(this) formValidation[this.name] = true : formValidation[this.name] = false; ); //check if any inputs are invalid for (var i in formValidation) if (formValidation[i] === false) formValid = false; break; else formValid = true; return formValid; function checkInputValidity(input) // var valid = $(input)[0].validity.valid; var valid = $(input)[0].value != ; formValidation[input.name] = valid; return valid; function handleFormErrors() var count = 0; for (var i in formValidation) if (formValidation[i] === false) count++; // addError(i); );
📌 UBI - Prerna (India)
🏢 Union National Bank
📍 India