mirror of
https://gh.wpcy.net/https://github.com/fairpm/aspirecloud.git
synced 2026-06-20 02:22:28 +08:00
* feat: Changes required on existing files to setup Jetstream * feat: add the Inertia Home and Dashboard * feat: Add all required files and migrations to setup Jetstream * feat: Add the Sanctum middleware to the API endpoints - Added Sanctum to the API endpoints to requiere an API Key - Added a setting to control if the app should use authenticated API or not (see .env.example) - Fix redirection on API routes to the login page when a request was unauthenticated * feat: Users Management and Authication API Keys - Refactor existing tests to make authenticated request is enable - Hide the permissions setting on the UI, for now we only have a read-only API - Add tests to test authenticated and unauthenticated calls
57 lines
2.1 KiB
Vue
57 lines
2.1 KiB
Vue
<script setup>
|
|
import AppLayout from '@/Layouts/AppLayout.vue';
|
|
import DeleteUserForm from '@/Pages/Profile/Partials/DeleteUserForm.vue';
|
|
import LogoutOtherBrowserSessionsForm from '@/Pages/Profile/Partials/LogoutOtherBrowserSessionsForm.vue';
|
|
import SectionBorder from '@/Components/SectionBorder.vue';
|
|
import TwoFactorAuthenticationForm from '@/Pages/Profile/Partials/TwoFactorAuthenticationForm.vue';
|
|
import UpdatePasswordForm from '@/Pages/Profile/Partials/UpdatePasswordForm.vue';
|
|
import UpdateProfileInformationForm from '@/Pages/Profile/Partials/UpdateProfileInformationForm.vue';
|
|
|
|
defineProps({
|
|
confirmsTwoFactorAuthentication: Boolean,
|
|
sessions: Array,
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<AppLayout title="Profile">
|
|
<template #header>
|
|
<h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight">
|
|
Profile
|
|
</h2>
|
|
</template>
|
|
|
|
<div>
|
|
<div class="max-w-7xl mx-auto py-10 sm:px-6 lg:px-8">
|
|
<div v-if="$page.props.jetstream.canUpdateProfileInformation">
|
|
<UpdateProfileInformationForm :user="$page.props.auth.user" />
|
|
|
|
<SectionBorder />
|
|
</div>
|
|
|
|
<div v-if="$page.props.jetstream.canUpdatePassword">
|
|
<UpdatePasswordForm class="mt-10 sm:mt-0" />
|
|
|
|
<SectionBorder />
|
|
</div>
|
|
|
|
<div v-if="$page.props.jetstream.canManageTwoFactorAuthentication">
|
|
<TwoFactorAuthenticationForm
|
|
:requires-confirmation="confirmsTwoFactorAuthentication"
|
|
class="mt-10 sm:mt-0"
|
|
/>
|
|
|
|
<SectionBorder />
|
|
</div>
|
|
|
|
<LogoutOtherBrowserSessionsForm :sessions="sessions" class="mt-10 sm:mt-0" />
|
|
|
|
<template v-if="$page.props.jetstream.hasAccountDeletionFeatures">
|
|
<SectionBorder />
|
|
|
|
<DeleteUserForm class="mt-10 sm:mt-0" />
|
|
</template>
|
|
</div>
|
|
</div>
|
|
</AppLayout>
|
|
</template>
|