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 398df92..f2cf13d 100644
--- a/db.js
+++ b/db.js
@@ -50,7 +50,7 @@ class DB {
const password = await bcrypt.hash(pwd, 12);
await this.query(
"INSERT INTO users (username, name, middlename, surname, password, class_id, type_id) VALUE (?,?,?,?,?,?,?)",
- [username, names[0], middlename, surname, password, classIndex + 1, 2]
+ [username, names[0].replace("\r", ""), middlename, surname, password, classIndex + 1, 2]
);
}
});