Skip to content

Commit

Permalink
Auth: Changing PasswordEncryptionCost to reduce the latency in /login…
Browse files Browse the repository at this point in the history
… api (#4878)

* auth: change PasswordEncryptionCost

Signed-off-by: Kartikay <[email protected]>

* refactor: cost of encryption to 8

Signed-off-by: Kartikay <[email protected]>

* fix: fix goimports

Signed-off-by: Kartikay <[email protected]>

---------

Signed-off-by: Kartikay <[email protected]>
Co-authored-by: Kartikay <[email protected]>
Co-authored-by: Saranya Jena <[email protected]>
  • Loading branch information
3 people authored Sep 18, 2024
1 parent e599c3d commit 0d755fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion chaoscenter/authentication/pkg/utils/configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var (
ApiTokenCollection = "api-token"
UsernameField = "username"
ExpiresAtField = "expires_at"
PasswordEncryptionCost = 15
PasswordEncryptionCost = 8
DefaultLitmusGqlGrpcEndpoint = "localhost"
DefaultLitmusGqlGrpcPort = ":8000"
//DefaultLitmusGqlGrpcPortHttps = ":8001" // enable when in use
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package v0_0_0

import (
"context"

log "github.com/sirupsen/logrus"
"go.mongodb.org/mongo-driver/mongo"
)
Expand Down

0 comments on commit 0d755fc

Please sign in to comment.