From eef2cba976c2c8a9b6e9e4b59ebfa84d759d6989 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 7 Feb 2023 16:34:25 +0100 Subject: [PATCH] :bug: Fix incorrect registration flag handling on frontend registration flag should not prevent include register on the router because a registration process can be started from oidc auth process --- frontend/src/app/main/ui/routes.cljs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/frontend/src/app/main/ui/routes.cljs b/frontend/src/app/main/ui/routes.cljs index d6ffde3fe..0825f47e9 100644 --- a/frontend/src/app/main/ui/routes.cljs +++ b/frontend/src/app/main/ui/routes.cljs @@ -8,7 +8,6 @@ (:require [app.common.spec :as us] [app.common.uuid :as uuid] - [app.config :as cf] [app.main.data.users :as du] [app.main.repo :as rp] [app.main.store :as st] @@ -35,12 +34,9 @@ (def routes [["/auth" ["/login" :auth-login] - (when (contains? @cf/flags :registration) - ["/register" :auth-register]) - (when (contains? @cf/flags :registration) - ["/register/validate" :auth-register-validate]) - (when (contains? @cf/flags :registration) - ["/register/success" :auth-register-success]) + ["/register" :auth-register] + ["/register/validate" :auth-register-validate] + ["/register/success" :auth-register-success] ["/recovery/request" :auth-recovery-request] ["/recovery" :auth-recovery] ["/verify-token" :auth-verify-token]]