mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 06:34:41 +02:00
Good progress on QR support
This commit is contained in:
parent
3c6c8d2a5c
commit
6070bc94e7
5 changed files with 139 additions and 38 deletions
|
@ -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(
|
||||
[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue