Category : passwords

I did a password comparison validation, but it is not working, could you help? I don’t know if the form is different for react, but I didn’t find something similar to do. function validarSenha(){ let senha = document.getElementsByName(‘senha’).value; let senha2 = document.getElementsByName(‘senha2’).value; if(senha!= senha2) { alert("Senhas diferentes!"); return false; } return true; } <div class="form-row ..

Read more

I am using XlSX.Read Javascript API to upload excel file, while trying to upload the excel file i need to un protect or remove the password, or any other way to un protect or input the password in Javascript, i have attached the code below for your reference, please check. <script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.8.0/jszip.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.8.0/xlsx.js"></script> <script> ..

Read more

I understand, why I see no eye icon in a input field with type "password", when I use the template tag. For this example, I create a simple single HTML file: <!DOCTYPE html> <html lang="de"> <head> <meta charset="UTF-8"> <title>Sample</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script> document.addEventListener(‘click’, () => { /* It’s not ok. (Second) */ const ..

Read more

I am trying to make a system to verify that both passwords match on a register screen of the web app I’m building. My code is this: function pwdCheck() { var pwdMsg = document.getElementById(‘pwdMsg’); pwdMsg.textContent = ”; if (txtPassword === txtPasswordVerif) { pwdMsg.textContent = ”; } else { pwdMsg.textContent = ‘Your passwords do not match’; ..

Read more