PHP Classes

File: public/assets/js/password-mismatch.js

Recommend this page to a friend!
  Packages of Steffen Haase   Beacon   public/assets/js/password-mismatch.js   Download  
File: public/assets/js/password-mismatch.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Beacon
MVC framework with built-in user management
Author: By
Last change:
Date: 1 month ago
Size: 808 bytes
 

Contents

Class file image Download
/* * Project: Beacon * File: password-mismatch.js * Date: 2026-06-14 * Author: Steffen Haase <shworx.development@gmail.com * Copyright: 2026 SHWorX (Steffen Haase) */ let passwordField = document.getElementById('password'); let confirmationField = document.getElementById('confirm_password'); let unmatchedError = document.getElementById('password_mismatch'); let check = function() { if (passwordField.value !== '' && confirmationField.value !== '') { if (passwordField.value === confirmationField.value) { unmatchedError.style.display = 'none'; } else { unmatchedError.style.display = 'block'; } } } passwordField.addEventListener('keyup', () => check()); confirmationField.addEventListener('keyup', () => check());