Can now batch add users to a device group.

This commit is contained in:
Ylian Saint-Hilaire
2019-05-30 12:40:10 -07:00
parent 078745b97a
commit b0e2914f92
10 changed files with 59 additions and 38 deletions

View File

@@ -402,7 +402,7 @@
function validateCreate(box, e) {
setDialogMode(0);
var userok = (Q('ausername').value.length > 0) && (Q('ausername').value.indexOf(' ') == -1);
var userok = (Q('ausername').value.length > 0) && (Q('ausername').value.indexOf(' ') == -1) && (Q('ausername').value.indexOf('"') == -1) && (Q('ausername').value.indexOf(',') == -1);
var emailok = (validateEmail(Q('aemail').value) == true);
var pass1ok = (Q('apassword1').value.length > 0);
var pass2ok = (Q('apassword2').value.length > 0) && (Q('apassword2').value == Q('apassword1').value);