Skip to content

Commit

Permalink
fix: remove duplicate schema error
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Oct 19, 2021
1 parent a40d7fe commit 4e69123
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions schema/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,16 +184,6 @@ func NewAddressNotVerifiedError() error {
})
}

func NewInvalidTOTPCode() error {
return errors.WithStack(&ValidationError{
ValidationError: &jsonschema.ValidationError{
Message: `the authentication code is not correct`,
InstancePtr: "#/",
},
Messages: new(text.Messages).Add(text.NewErrorValidationInvalidTOTPCode()),
})
}

func NewNoTOTPDeviceRegistered() error {
return errors.WithStack(&ValidationError{
ValidationError: &jsonschema.ValidationError{
Expand Down

0 comments on commit 4e69123

Please sign in to comment.