Skip to content
Snippets Groups Projects
Commit c2a9f891 authored by Leander Tolksdorf's avatar Leander Tolksdorf
Browse files

change username field to email in auth.controller

parent e2299e70
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ import envVars from "../config";
//log in
const authLoginController = async (req: Request, res: Response) => {
try {
const { username: email, password } = req.body;
const { email, password } = req.body;
const employee = await Employee.findOne({
attributes: ["email", "password", "role"],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment