From 6fc5aa1ee465e2a0898fc30e848799bfb7ea7946 Mon Sep 17 00:00:00 2001 From: a-ill Date: Tue, 1 Aug 2023 16:44:41 +0300 Subject: [PATCH] Fixed sign up --- Server/app/resources/authentication/AuthenticationController.jl | 1 - Server/app/svelte/src/auth/signup-component.svelte | 2 +- Server/public/js/components/auth-component.js | 2 +- Server/public/js/components/communes-add-component.js | 2 +- Server/public/js/components/communes-component.js | 2 +- Server/public/js/components/compass-component.js | 2 +- Server/public/js/components/confirmation-component.js | 2 +- Server/public/js/components/cookies-dialog.js | 2 +- Server/public/js/components/cooperatives-add-component.js | 2 +- Server/public/js/components/cooperatives-component.js | 2 +- Server/public/js/components/footer-component.js | 2 +- Server/public/js/components/groups-add-component.js | 2 +- Server/public/js/components/groups-component.js | 2 +- Server/public/js/components/index-5b685137.js | 1 + Server/public/js/components/index-8744cf8a.js | 1 + Server/public/js/components/join-us-component.js | 2 +- Server/public/js/components/landing-component.js | 2 +- Server/public/js/components/legend-component.js | 2 +- Server/public/js/components/loadscreen-component.js | 2 +- Server/public/js/components/login-component.js | 2 +- Server/public/js/components/manifesto-component.js | 2 +- Server/public/js/components/map-component.js | 2 +- Server/public/js/components/navbar-logged.js | 2 +- Server/public/js/components/navbar-not-logged.js | 2 +- Server/public/js/components/pane-aligner.js | 2 +- Server/public/js/components/parties-add-component.js | 2 +- Server/public/js/components/parties-component.js | 2 +- Server/public/js/components/partners-add-component.js | 2 +- Server/public/js/components/partners-component.js | 2 +- Server/public/js/components/profile-communes.js | 2 +- Server/public/js/components/profile-component.js | 2 +- Server/public/js/components/profile-coops.js | 2 +- Server/public/js/components/profile-general.js | 2 +- Server/public/js/components/profile-groups.js | 2 +- Server/public/js/components/profile-parties.js | 2 +- Server/public/js/components/select-component.js | 2 +- Server/public/js/components/signup-component.js | 2 +- Server/public/js/components/switch-component.js | 2 +- 38 files changed, 37 insertions(+), 36 deletions(-) create mode 100644 Server/public/js/components/index-5b685137.js create mode 100644 Server/public/js/components/index-8744cf8a.js diff --git a/Server/app/resources/authentication/AuthenticationController.jl b/Server/app/resources/authentication/AuthenticationController.jl index f2729bf..bd2f1a7 100644 --- a/Server/app/resources/authentication/AuthenticationController.jl +++ b/Server/app/resources/authentication/AuthenticationController.jl @@ -140,7 +140,6 @@ function register() password = data["password"] |> Users.hash_password, ) |> save! authenticate(user.id, GenieSession.session(params())) - assign_role(user, findone(Role, name = "free")) confirmation_code = randstring('0':'9', 5) user.confirmation_code = confirmation_code save(user) diff --git a/Server/app/svelte/src/auth/signup-component.svelte b/Server/app/svelte/src/auth/signup-component.svelte index dc496fc..7243389 100644 --- a/Server/app/svelte/src/auth/signup-component.svelte +++ b/Server/app/svelte/src/auth/signup-component.svelte @@ -109,7 +109,7 @@
- +