diff --git a/apps/infoalloggi/src/server/controllers/auth.controller.ts b/apps/infoalloggi/src/server/controllers/auth.controller.ts index d6aed69..d81b246 100644 --- a/apps/infoalloggi/src/server/controllers/auth.controller.ts +++ b/apps/infoalloggi/src/server/controllers/auth.controller.ts @@ -109,7 +109,7 @@ export const logIn = async ({ if (!user) { throw new TRPCError({ code: "NOT_FOUND", - message: "Utente non trovato", + message: "Errore in Login: Utente non trovato", }); } //Check if user is blocked or unverified @@ -117,7 +117,7 @@ export const logIn = async ({ if (user.isBlocked) { throw new TRPCError({ code: "FORBIDDEN", - message: "Utente bloccato", + message: "Errore in Login: Utente bloccato", }); } @@ -134,7 +134,7 @@ export const logIn = async ({ if (!passworIsMatch) { throw new TRPCError({ code: "BAD_REQUEST", - message: "Invalid email or password", + message: "Errore in Login: Invalid email or password", }); } } @@ -182,6 +182,7 @@ export const logIn = async ({ message: "Errore durante il login, refresh token non impostato", }); } + return { status: "success" as const }; } catch (e) { throw new TRPCError({ code: "INTERNAL_SERVER_ERROR",