diff --git a/site/src/router/index.ts b/site/src/router/index.ts index 0169373..41a806c 100644 --- a/site/src/router/index.ts +++ b/site/src/router/index.ts @@ -54,6 +54,7 @@ const router = createRouter({ path: '/invite/:inviteUuid', name: 'invite-accept', component: () => import('../views/InviteAccept.vue'), + meta: { requiresAuth: true }, }, { path: '/agents', diff --git a/site/src/views/LoginView.vue b/site/src/views/LoginView.vue index 787cd69..22307cd 100644 --- a/site/src/views/LoginView.vue +++ b/site/src/views/LoginView.vue @@ -97,6 +97,10 @@ onMounted(async () => { /> +
+ Don't have an account? + Register +
@@ -114,4 +118,10 @@ onMounted(async () => { max-width: 400px; width: 100%; } +.auth-switch { + margin-top: 1rem; + text-align: center; + font-size: 0.875rem; + color: #6b7280; +} diff --git a/site/src/views/RegisterView.vue b/site/src/views/RegisterView.vue index 836fc54..898abd1 100644 --- a/site/src/views/RegisterView.vue +++ b/site/src/views/RegisterView.vue @@ -164,6 +164,10 @@ onMounted(async () => { +
+ Already have an account? + Login +
@@ -175,4 +179,10 @@ onMounted(async () => { margin: 0 auto; padding: 1rem; } +.auth-switch { + margin-top: 1rem; + text-align: center; + font-size: 0.875rem; + color: #6b7280; +}