src/store.js
// this method uses a file system link to associate a login ID with a user UID (folder)
this method uses a file system link to associate a login ID with a user UID (folder)
this method uses a file system link to associate a login ID with a user UID ( folder )
async userLink(name, who) {
    if (debug_level) log.info(`userLink: ${name} ${who}`);
    if (!(name && who)) {
      log.error(`Error (userLink): Invalid request, ${name} ${who}`);
      return false;
    }
    let existingPath = path.join(this.data, 'users', who);
    let newPath = path.join(this.data, 'logins', name);
    return await io.symLink(existingPath, newPath, 'junction');
  }
async userLink ( name , who ) { if ( debug_level ) log . info ( ` ${ name } ${ who } ` ) ; if ( ! ( name && who ) ) { log . error ( ` ${ name } ${ who } ` ) ; return false ; } let existingPath = path . join ( this . data , 'users' , who ) ; let newPath = path . join ( this . data , 'logins' , name ) ; return await io . symLink ( existingPath , newPath , 'junction' ) ; }
this method uses a file system link to associate a login ID with a user UID (folder)
this method uses a file system link to associate a login ID with a user UID ( folder )