aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-02-21 23:01:37 +0000
committerAdam Soltys <[email protected]>2023-02-21 23:01:59 +0000
commit983e49a004b9ade1a90ee40d10c557ca7a6fe31e (patch)
tree2897619298048743c2d4a0f7dc504ade15348790 /lib
parenta311401e50cbc70f5d613097607cb55466aa4061 (diff)
downloadcoinos-server-983e49a004b9ade1a90ee40d10c557ca7a6fe31e.tar.gz
coinos-server-983e49a004b9ade1a90ee40d10c557ca7a6fe31e.zip
skip 2fa for admin login
Diffstat (limited to 'lib')
-rw-r--r--lib/db.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/db.js b/lib/db.js
index 05917645..f676946d 100644
--- a/lib/db.js
+++ b/lib/db.js
@@ -16,8 +16,8 @@ export let g = async k => {
}
};
export let s = (k, v) => {
- if (k === "user:null") {
- warn("###### NULL USER #######");
+ if (k === "user:null" || k === "user:undefined") {
+ warn("###### NULL USER #######")
console.trace();
}
db.set(k, JSON.stringify(v));