diff --git a/composables/useAuthFetch.js b/composables/useAuthFetch.js index 9e95d4a..72e7d40 100644 --- a/composables/useAuthFetch.js +++ b/composables/useAuthFetch.js @@ -1,18 +1,6 @@ export const useAuthFetch = async (url, options = {}) => { const { $auth } = useNuxtApp() - const token = await $auth.retrieveToken() - - if (!token) { - return await $auth.redirectToLogin() - } - - options = Object.assign(options, { - headers: { - 'Authorization': 'Bearer ' + token - } - }) - const res = await useFetch(url, options) if (res.error.value && res.error.value.status === 401) { await $auth.logout() diff --git a/docker-compose.yml b/docker-compose.yml index 8083a24..15320e3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,6 +17,12 @@ services: - DJANGO_SUPERUSER_USERNAME=admin # default superuser name - DJANGO_SUPERUSER_PASSWORD=password # default superuser password - DJANGO_SUPERUSER_EMAIL=admin@example.com # default superuser email + # If you want to use the email verification function, you need to configure the following parameters +# - EMAIL_HOST=SMTP server address +# - EMAIL_PORT=SMTP server port +# - EMAIL_HOST_USER= +# - EMAIL_HOST_PASSWORD= +# - EMAIL_USE_TLS=True ports: - '8000:8000' networks: diff --git a/nuxt.config.ts b/nuxt.config.ts index a7ca469..9e747d1 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -53,7 +53,8 @@ export default defineNuxtConfig({ devProxy: { "/api": { target: "http://localhost:8000/api", - prependPath: true + prependPath: true, + changeOrigin: true, } } diff --git a/pages/account/onboarding.vue b/pages/account/onboarding.vue new file mode 100644 index 0000000..cf34e02 --- /dev/null +++ b/pages/account/onboarding.vue @@ -0,0 +1,81 @@ + + + + + \ No newline at end of file diff --git a/pages/login.vue b/pages/account/signin.vue similarity index 53% rename from pages/login.vue rename to pages/account/signin.vue index 7676a39..1eb2368 100644 --- a/pages/login.vue +++ b/pages/account/signin.vue @@ -1,6 +1,5 @@