diff options
Diffstat (limited to 'internal/commands/context.go')
| -rw-r--r-- | internal/commands/context.go | 2 |
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) |
