summaryrefslogtreecommitdiff
path: root/internal/commands/context.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2023-10-08 09:06:01 +1100
committerGitHub <noreply@github.com>2023-10-08 08:06:01 +1000
commit381a4a95bb4ad1020ef173609fa67bdb70d80b2e (patch)
tree59d13d91dc29d9f0af71734df4f55565cf070d5d /internal/commands/context.go
parentb1255c2b17314b88c11da8843930c18ce91abf39 (diff)
refactor: clock newups (#6101)
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/commands/context.go')
-rw-r--r--internal/commands/context.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/commands/context.go b/internal/commands/context.go
index 3022c331b..c4a1a90b4 100644
--- a/internal/commands/context.go
+++ b/internal/commands/context.go
@@ -143,7 +143,7 @@ func (ctx *CmdCtx) LoadProviders() (warns, errs []error) {
ctx.providers.Authorizer = authorization.NewAuthorizer(ctx.config)
ctx.providers.NTP = ntp.NewProvider(&ctx.config.NTP)
ctx.providers.PasswordPolicy = middlewares.NewPasswordPolicyProvider(ctx.config.PasswordPolicy)
- ctx.providers.Regulator = regulation.NewRegulator(ctx.config.Regulation, ctx.providers.StorageProvider, &clock.Real{})
+ ctx.providers.Regulator = regulation.NewRegulator(ctx.config.Regulation, ctx.providers.StorageProvider, clock.New())
ctx.providers.SessionProvider = session.NewProvider(ctx.config.Session, ctx.trusted)
ctx.providers.TOTP = totp.NewTimeBasedProvider(ctx.config.TOTP)