mirror of
https://github.com/openziti/zrok.git
synced 2025-02-06 21:39:39 +01:00
the 'registration' stanza should not be required (#147)
This commit is contained in:
parent
6a4f2b86be
commit
627d9eb882
@ -37,7 +37,7 @@ func (self *inviteHandler) Handle(params account.InviteParams) middleware.Respon
|
||||
}
|
||||
defer func() { _ = tx.Rollback() }()
|
||||
|
||||
if self.cfg.Registration.TokenStrategy == "store" {
|
||||
if self.cfg.Registration != nil && self.cfg.Registration.TokenStrategy == "store" {
|
||||
invite, err := str.GetInviteTokenByToken(params.Body.Token, tx)
|
||||
if err != nil {
|
||||
logrus.Error(err)
|
||||
|
Loading…
Reference in New Issue
Block a user