Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
  • Loading branch information
golanglemonade committed Aug 29, 2024
1 parent ab8aad2 commit 156c0a2
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ import (
dbx "github.com/theopenlane/dbx/pkg/dbxclient"
"github.com/theopenlane/iam/fgax"

"github.com/theopenlane/utils/cache"

ent "github.com/theopenlane/core/internal/ent/generated"
"github.com/theopenlane/core/internal/entdb"
"github.com/theopenlane/core/internal/httpserve/authmanager"
"github.com/theopenlane/core/internal/httpserve/config"
"github.com/theopenlane/core/internal/httpserve/server"
"github.com/theopenlane/core/internal/httpserve/serveropts"
"github.com/theopenlane/utils/cache"
)

var serveCmd = &cobra.Command{
Expand Down
3 changes: 2 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import (
"github.com/theopenlane/iam/sessions"
"github.com/theopenlane/iam/tokens"

"github.com/theopenlane/utils/cache"

"github.com/theopenlane/core/internal/ent/entconfig"
"github.com/theopenlane/core/internal/httpserve/handlers"
"github.com/theopenlane/core/pkg/analytics/posthog"
Expand All @@ -31,7 +33,6 @@ import (
"github.com/theopenlane/core/pkg/middleware/ratelimit"
"github.com/theopenlane/core/pkg/middleware/redirect"
"github.com/theopenlane/core/pkg/middleware/secure"
"github.com/theopenlane/utils/cache"
)

var (
Expand Down
3 changes: 2 additions & 1 deletion internal/ent/hooks/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ import (

"github.com/theopenlane/iam/auth"

"github.com/theopenlane/utils/passwd"

"github.com/theopenlane/core/internal/ent/generated"
"github.com/theopenlane/core/internal/ent/generated/hook"
"github.com/theopenlane/core/internal/ent/generated/organization"
"github.com/theopenlane/core/internal/ent/generated/privacy"
"github.com/theopenlane/core/pkg/enums"
"github.com/theopenlane/utils/passwd"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion internal/httpserve/handlers/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ import (

"github.com/theopenlane/iam/auth"

"github.com/theopenlane/utils/passwd"

"github.com/theopenlane/core/pkg/enums"
"github.com/theopenlane/core/pkg/models"
"github.com/theopenlane/utils/passwd"
)

// LoginHandler validates the user credentials and returns a valid cookie
Expand Down
3 changes: 2 additions & 1 deletion internal/httpserve/handlers/resetpassword.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ import (
"github.com/theopenlane/iam/auth"
"github.com/theopenlane/iam/tokens"

"github.com/theopenlane/utils/passwd"

"github.com/theopenlane/core/internal/ent/generated"
"github.com/theopenlane/core/internal/ent/privacy/token"
"github.com/theopenlane/core/pkg/models"
"github.com/theopenlane/utils/passwd"
)

// ResetPassword allows the user (after requesting a password reset) to
Expand Down
3 changes: 2 additions & 1 deletion internal/httpserve/serveropts/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ import (
"github.com/theopenlane/iam/sessions"
"github.com/theopenlane/iam/tokens"

"github.com/theopenlane/utils/cache"

"github.com/theopenlane/core/internal/ent/generated"
"github.com/theopenlane/core/internal/graphapi"
"github.com/theopenlane/core/internal/httpserve/config"
Expand All @@ -41,7 +43,6 @@ import (
"github.com/theopenlane/core/pkg/middleware/ratelimit"
"github.com/theopenlane/core/pkg/middleware/redirect"
"github.com/theopenlane/core/pkg/middleware/secure"
"github.com/theopenlane/utils/cache"
)

type ServerOption interface {
Expand Down

0 comments on commit 156c0a2

Please sign in to comment.