diff --git a/server/src/controllers/auth.controllers.ts b/server/src/controllers/auth.controllers.ts
index c7625a806c60da7087bbea3a0fcc0ff2da711fe5..b17e199f27b9aa46891ecdda616f1617c4ab363a 100644
--- a/server/src/controllers/auth.controllers.ts
+++ b/server/src/controllers/auth.controllers.ts
@@ -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"],