Adapted registerlogin.js db require location

This commit is contained in:
Matthew Patrick 2021-11-15 17:25:24 +07:00
parent 2911ab5667
commit b4885f9993

View file

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