mirror of
https://github.com/openziti/zrok.git
synced 2025-08-19 04:06:18 +02:00
support a 'new account link' to inject new account information onto the login page (#552)
This commit is contained in:
@@ -38,6 +38,7 @@ type Config struct {
|
||||
type AdminConfig struct {
|
||||
Secrets []string `cf:"+secret"`
|
||||
TouLink string
|
||||
NewAccountLink string
|
||||
ProfileEndpoint string
|
||||
}
|
||||
|
||||
|
@@ -26,6 +26,7 @@ func (ch *configurationHandler) Handle(_ metadata.ConfigurationParams) middlewar
|
||||
}
|
||||
if cfg.Admin != nil {
|
||||
data.TouLink = cfg.Admin.TouLink
|
||||
data.NewAccountLink = cfg.Admin.NewAccountLink
|
||||
}
|
||||
if cfg.Invites != nil {
|
||||
data.InviteTokenContact = cfg.Invites.TokenContact
|
||||
|
Reference in New Issue
Block a user