diff --git a/identity/handler.go b/identity/handler.go index d5e71a0f6ebc..c09ad6a82822 100644 --- a/identity/handler.go +++ b/identity/handler.go @@ -3,10 +3,11 @@ package identity import ( "context" "encoding/json" - "github.com/ory/kratos/hash" "net/http" "time" + "github.com/ory/kratos/hash" + "github.com/ory/kratos/x" "github.com/ory/kratos/cipher" diff --git a/identity/handler_import.go b/identity/handler_import.go index 2aed1f5c382c..e6007275bbe5 100644 --- a/identity/handler_import.go +++ b/identity/handler_import.go @@ -3,10 +3,12 @@ package identity import ( "context" "encoding/json" + + "github.com/pkg/errors" + "github.com/ory/herodot" "github.com/ory/kratos/hash" "github.com/ory/kratos/x" - "github.com/pkg/errors" ) func (h *Handler) importCredentials(ctx context.Context, i *Identity, creds *AdminIdentityImportCredentials) error { diff --git a/identity/handler_test.go b/identity/handler_test.go index bd54fc1a0834..1681c313634b 100644 --- a/identity/handler_test.go +++ b/identity/handler_test.go @@ -5,15 +5,17 @@ import ( "context" "encoding/json" "fmt" - "github.com/gofrs/uuid" - "github.com/ory/kratos/hash" - "github.com/ory/x/snapshotx" "io/ioutil" "net/http" "net/http/httptest" "testing" "time" + "github.com/gofrs/uuid" + + "github.com/ory/kratos/hash" + "github.com/ory/x/snapshotx" + "github.com/bxcodec/faker/v3" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require"