fix build error

This commit is contained in:
Cam 2024-02-21 10:54:38 -06:00
parent f3ee9e2e26
commit 4bfcda5898
No known key found for this signature in database
GPG Key ID: 367B7C7EBD84A8BD

View File

@ -39,7 +39,7 @@ func (handler *regenerateTokenHandler) Handle(params account.RegenerateTokenPara
}
if a.Disabled {
logrus.Errorf("account '%v' for '%v' disabled", a.Email, a.Token)
return account.NewResetTokenNotFound()
return account.NewRegenerateTokenNotFound()
}
// Need to create new token and invalidate all other resources