Signup working with new db
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user