Fixed registerlogin.js database connection

This commit is contained in:
Matthew Patrick 2021-11-15 18:07:16 +07:00
parent fe945c6a70
commit db47de1cf5

View file

@ -2,7 +2,8 @@ const bcrypt = require("bcrypt");
const saltRounds = 10;
var nodemailer = require("nodemailer");
var randtoken = require("rand-token");
var db_connect = require("../modules/db.js");
const db = require("../modules/db");
const db_connect = db.connect();
//send email
function sendEmail(email, token) {