mirror of
https://github.com/penpot/penpot.git
synced 2025-05-06 10:25:54 +02:00
🐛 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
This commit is contained in:
parent
1c4dcf1574
commit
eef2cba976
1 changed files with 3 additions and 7 deletions
|
@ -8,7 +8,6 @@
|
||||||
(:require
|
(:require
|
||||||
[app.common.spec :as us]
|
[app.common.spec :as us]
|
||||||
[app.common.uuid :as uuid]
|
[app.common.uuid :as uuid]
|
||||||
[app.config :as cf]
|
|
||||||
[app.main.data.users :as du]
|
[app.main.data.users :as du]
|
||||||
[app.main.repo :as rp]
|
[app.main.repo :as rp]
|
||||||
[app.main.store :as st]
|
[app.main.store :as st]
|
||||||
|
@ -35,12 +34,9 @@
|
||||||
(def routes
|
(def routes
|
||||||
[["/auth"
|
[["/auth"
|
||||||
["/login" :auth-login]
|
["/login" :auth-login]
|
||||||
(when (contains? @cf/flags :registration)
|
["/register" :auth-register]
|
||||||
["/register" :auth-register])
|
["/register/validate" :auth-register-validate]
|
||||||
(when (contains? @cf/flags :registration)
|
["/register/success" :auth-register-success]
|
||||||
["/register/validate" :auth-register-validate])
|
|
||||||
(when (contains? @cf/flags :registration)
|
|
||||||
["/register/success" :auth-register-success])
|
|
||||||
["/recovery/request" :auth-recovery-request]
|
["/recovery/request" :auth-recovery-request]
|
||||||
["/recovery" :auth-recovery]
|
["/recovery" :auth-recovery]
|
||||||
["/verify-token" :auth-verify-token]]
|
["/verify-token" :auth-verify-token]]
|
||||||
|
|
Loading…
Add table
Reference in a new issue