From 6b078267de23fa9e7eab46d7f00291e5bf4fe3ba Mon Sep 17 00:00:00 2001 From: Pascal Martineau Date: Thu, 18 Sep 2025 14:02:00 -0400 Subject: [PATCH] refactor: useAuth / useAuthActions --- .../ccat/app/components/auth/LoginForm.vue | 3 ++- .../ccat/app/components/auth/LogoutForm.vue | 3 ++- .../themes/ccat/app/composables/useAuth.ts | 16 ++++++++++------ wp-content/themes/ccat/app/middleware/hasRole.ts | 5 ++--- wp-content/themes/ccat/app/middleware/isAdmin.ts | 7 +++---- .../themes/ccat/app/middleware/isLoggedIn.ts | 4 ++-- .../themes/ccat/app/middleware/isLoggedOut.ts | 4 ++-- 7 files changed, 23 insertions(+), 19 deletions(-) diff --git a/wp-content/themes/ccat/app/components/auth/LoginForm.vue b/wp-content/themes/ccat/app/components/auth/LoginForm.vue index cc74ced..d9dcb57 100644 --- a/wp-content/themes/ccat/app/components/auth/LoginForm.vue +++ b/wp-content/themes/ccat/app/components/auth/LoginForm.vue @@ -1,5 +1,6 @@