From 209acecbcca6da052b1252e5ab34a35ebcb10451 Mon Sep 17 00:00:00 2001 From: Bradley Shellnut Date: Fri, 16 Jun 2023 16:40:28 -0700 Subject: [PATCH] Remove code to add the role on signin. --- src/routes/auth/signin/+page.server.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/routes/auth/signin/+page.server.ts b/src/routes/auth/signin/+page.server.ts index dcb743e..0dcb5d2 100644 --- a/src/routes/auth/signin/+page.server.ts +++ b/src/routes/auth/signin/+page.server.ts @@ -49,10 +49,6 @@ export const actions = { } } }); - - if (user && user.roles.length === 0) { - add_user_to_role(user.id, 'user'); - } } catch (e) { // TODO: need to return error message to the client console.error(e);