the 'registration' stanza should not be required (#147)

This commit is contained in:
Michael Quigley 2023-01-12 14:17:09 -05:00
parent 6a4f2b86be
commit 627d9eb882
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -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)