Signup working with new db

This commit is contained in:
metacryst
2025-11-23 22:16:53 -06:00
parent c3ed5ac5ac
commit 8c7ed68975
8 changed files with 98 additions and 67 deletions

View File

@@ -30,7 +30,7 @@ export default class AuthHandler {
async login(req, res) {
const { email, password } = req.body;
let foundUser = global.db.get.userByEmail(email)
let foundUser = global.db.members.getByEmail(email)
if(!foundUser) {
res.status(400).json({ error: 'Incorrect email.' });
return;