aboutsummaryrefslogtreecommitdiff
path: root/db.js
diff options
context:
space:
mode:
Diffstat (limited to 'db.js')
-rw-r--r--db.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/db.js b/db.js
index cc99f92..916f19d 100644
--- a/db.js
+++ b/db.js
@@ -230,7 +230,7 @@ class DB {
const pwd = nanoid.nanoid(8);
const password = await bcrypt.hash(pwd, 10);
await this.query("UPDATE users SET password = ? WHERE id = ?", [password, uid]);
- console.log(`New password for ${uid}: ${pwd}`);
+ return pwd;
}
async dump() {