add access controll to user pages

This commit is contained in:
Kuchenpirat
2024-01-31 15:25:21 +00:00
parent 8d2d571683
commit 7dafa6c7fe
4 changed files with 4 additions and 1 deletions

View File

@@ -135,6 +135,7 @@ export default defineComponent({
UserAvatar,
UserPasswordStrength,
},
middleware: "auth",
setup() {
const { $auth } = useContext();
const user = computed(() => $auth.user as unknown as UserOut);