mirror of
https://github.com/openziti/zrok.git
synced 2025-06-20 09:48:07 +02:00
moved to warnf
This commit is contained in:
parent
8e0ae86214
commit
f9159e9d00
@ -21,7 +21,7 @@ func newInviteHandler(cfg *config.Config) *inviteHandler {
|
|||||||
|
|
||||||
func (h *inviteHandler) Handle(params account.InviteParams) middleware.Responder {
|
func (h *inviteHandler) Handle(params account.InviteParams) middleware.Responder {
|
||||||
if h.cfg.Invites == nil || !h.cfg.Invites.InvitesOpen {
|
if h.cfg.Invites == nil || !h.cfg.Invites.InvitesOpen {
|
||||||
logrus.Warn("not accepting invites; attempt from '%v'", params.Body.Email)
|
logrus.Warnf("not accepting invites; attempt from '%v'", params.Body.Email)
|
||||||
return account.NewInviteBadRequest()
|
return account.NewInviteBadRequest()
|
||||||
}
|
}
|
||||||
if params.Body == nil || params.Body.Email == "" {
|
if params.Body == nil || params.Body.Email == "" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user