mirror of
https://github.com/openziti/zrok.git
synced 2025-02-18 03:01:02 +01:00
commit
91c5d0edb1
@ -77,7 +77,7 @@ func (h *inviteHandler) Handle(params account.InviteParams) middleware.Responder
|
|||||||
if oldAr, err := str.FindAccountRequestWithEmail(params.Body.Email, tx); err == nil {
|
if oldAr, err := str.FindAccountRequestWithEmail(params.Body.Email, tx); err == nil {
|
||||||
logrus.Warnf("found previous account request for '%v', removing", params.Body.Email)
|
logrus.Warnf("found previous account request for '%v', removing", params.Body.Email)
|
||||||
if err := str.DeleteAccountRequest(oldAr.Id, tx); err != nil {
|
if err := str.DeleteAccountRequest(oldAr.Id, tx); err != nil {
|
||||||
logrus.Errorf("error deleteing previous account request for '%v': %v", params.Body.Email, err)
|
logrus.Errorf("error deleting previous account request for '%v': %v", params.Body.Email, err)
|
||||||
return account.NewInviteInternalServerError()
|
return account.NewInviteInternalServerError()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user