1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00
raspap-webgui/dist/js/functions.js
Joe Haig b353dd77a8 Add password length check
Also remove most of the rest of the javascript as it is unused.
2016-08-14 16:56:13 +00:00

10 lines
272 B
JavaScript

function CheckPSK(psk, id) {
if(psk.value.length < 8 || psk.value.length > 63) {
psk.style.background='#FFD0D0';
document.getElementById(id).disabled = true;
} else {
psk.style.background='#D0FFD0';
document.getElementById(id).disabled = false;
}
}