Browse Source

Refactor user registration flow: update CSRF settings, rename 'Create User' to 'Register', and replace create-user page with register page

pull/2426/head
GONCALOUNI 6 months ago
parent
commit
0c0ed22916
3 changed files with 3 additions and 3 deletions
  1. 2
      backend/config/settings/base.py
  2. 4
      frontend/components/layout/TheHeader.vue
  3. 0
      frontend/pages/register.vue

2
backend/config/settings/base.py

@ -234,7 +234,7 @@ CSRF_TRUSTED_ORIGINS = env.list("CSRF_TRUSTED_ORIGINS", ["http://localhost:3000"
ALLOWED_HOSTS = ["*"]
CORS_ORIGIN_ALLOW_ALL = True
CSRF_TRUSTED_ORIGINS = ["http://127.0.0.1:3000", "http://0.0.0.0:3000", "http://localhost:3000", "http://127.0.0.1:000", "http://192.168.101.18:3000"]
CSRF_TRUSTED_ORIGINS = ["http://127.0.0.1:3000", "http://0.0.0.0:3000", "http://localhost:3000", "http://127.0.0.1:000", "http://192.168.101.18:3000", "http://10.20.92.150:3000"]
CSRF_TRUSTED_ORIGINS += env.list("CSRF_TRUSTED_ORIGINS", [])
# Batch size for importing data

4
frontend/components/layout/TheHeader.vue

@ -52,9 +52,9 @@
<v-btn
v-if="!isAuthenticated" outlined
style="margin-left: 0.5vw;"
@click="$router.push(localePath('/create-user'))"
@click="$router.push(localePath('/register'))"
>
Create User
Register
</v-btn>
<v-btn
v-if="isAuthenticated" outlined

frontend/pages/create-user.vue → frontend/pages/register.vue

Loading…
Cancel
Save