Skip to content

How to close the connection #10

@Stylesoftware

Description

@Stylesoftware

Looking for something like:

session.on('pass', (username, password, cb) => {
    if (username === 'admin' && password === 'adminpw') {
      session.readOnly = false;
      cb(null, 'Welcome admin')
    } else {
  session.close(); session.end(); // these don't seem to do too much
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions