refactor: js password validation to single file

This commit is contained in:
2024-11-25 23:46:39 -03:00
parent 348d04e1e9
commit 6279dc7dd0
2 changed files with 9 additions and 10 deletions

View File

@@ -0,0 +1,8 @@
(() => {
'use strict'
const password = document.getElementById("password");
const password_validation = document.getElementById("password-confirmation");
password.addEventListener('change', (c) => {
password_validation.setAttribute("pattern", c.target.value);
});
})()