Newer
Older
ldapcherry / resources / static / js / lc-filler.js
@kakwa kakwa on 8 Jul 2015 466 bytes adding skeleton of autofill functions
/* 
 * 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';
}