Good progress on QR support

This commit is contained in:
Bryan Ashby 2019-05-09 19:56:04 -06:00
parent 3c6c8d2a5c
commit 6070bc94e7
No known key found for this signature in database
GPG key ID: B49EB437951D2542
5 changed files with 139 additions and 38 deletions

View file

@ -20,6 +20,7 @@ const User = require('./user.js');
// deps
const async = require('async');
const _ = require('lodash');
const assert = require('assert');
exports.userLogin = userLogin;
exports.recordLogin = recordLogin;
@ -110,6 +111,8 @@ function userLogin(client, username, password, options, cb) {
}
function recordLogin(client, cb) {
assert(client.user.authenticated); // don't get in situations where this isn't true
const user = client.user;
async.parallel(
[