mirror of
https://github.com/openziti/zrok.git
synced 2025-08-17 03:11:17 +02:00
invite api polish (#834)
This commit is contained in:
@ -24,7 +24,7 @@ func (h *inviteHandler) Handle(params account.InviteParams) middleware.Responder
|
||||
logrus.Warnf("not accepting invites; attempt from '%v'", params.Body.Email)
|
||||
return account.NewInviteBadRequest()
|
||||
}
|
||||
if params.Body == nil || params.Body.Email == "" {
|
||||
if params.Body.Email == "" {
|
||||
logrus.Errorf("missing email")
|
||||
return account.NewInviteBadRequest()
|
||||
}
|
||||
|
Reference in New Issue
Block a user