From 61509075534d13d2392736d7222317641132a300 Mon Sep 17 00:00:00 2001 From: donpat1to Date: Fri, 10 Oct 2025 18:23:09 +0200 Subject: [PATCH] moved authController to only use login dependent sql data --- backend/src/controllers/authController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/controllers/authController.ts b/backend/src/controllers/authController.ts index 9e8efa7..d233a7d 100644 --- a/backend/src/controllers/authController.ts +++ b/backend/src/controllers/authController.ts @@ -198,7 +198,7 @@ export const register = async (req: Request, res: Response) => { // Get created user const newUser = await db.get( - 'SELECT id, email, name, role, phone, department FROM users WHERE id = ?', + 'SELECT id, email, name, role FROM users WHERE id = ?', [result.lastID] );