diff --git a/resources/static/js/lc-filler.js b/resources/static/js/lc-filler.js new file mode 100644 index 0000000..e26b495 --- /dev/null +++ b/resources/static/js/lc-filler.js @@ -0,0 +1,28 @@ +/* + * Licensed under the MIT public license. + * + * Part of LdapCherry. + * + * Functions to autofill form fields from other fields. + * +*/ + +function lcUid(firstname, lastname){ + return 'test'; +} + +function lcDisplayName(firstname, lastname){ + return 'test'; +} + +function lcMail(firstname, lastname, domain){ + return 'test@test'; +} + +function lcUidNumber(firstname, lastname){ + return 42; +} + +function lcHomeDir(firstname, lastname){ + return '/home/test'; +}