Skip to content

Commit 362467b

Browse files
deepakprabhakaraory-bot
authored andcommitted
chore: fixed typo in API description
GitOrigin-RevId: 110c60aedab107d0ff414fd2dde6eee1c2f2e51b
1 parent b922c60 commit 362467b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

persistence/sql/persister.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func (p *Persister) CleanupDatabase(ctx context.Context, wait time.Duration, old
205205
}
206206
time.Sleep(wait)
207207

208-
p.r.Logger().Println("Cleaning up expired registation flows")
208+
p.r.Logger().Println("Cleaning up expired registration flows")
209209
if err := p.DeleteExpiredRegistrationFlows(ctx, currentTime, batchSize); err != nil {
210210
return err
211211
}

selfservice/strategy/totp/settings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func (s *Strategy) continueSettingsFlow(ctx context.Context, r *http.Request, ct
174174
func (s *Strategy) continueSettingsFlowAddTOTP(ctx context.Context, ctxUpdate *settings.UpdateContext, p updateSettingsFlowWithTotpMethod) (*identity.Identity, error) {
175175
keyURL := gjson.GetBytes(ctxUpdate.Flow.InternalContext, flow.PrefixInternalContextKey(s.ID(), InternalContextKeyURL)).String()
176176
if len(keyURL) == 0 {
177-
return nil, errors.WithStack(herodot.ErrInternalServerError.WithReasonf("Could not find they TOTP key in the internal context. This is a code bug and should be reported to https://github.com/ory/kratos/."))
177+
return nil, errors.WithStack(herodot.ErrInternalServerError.WithReasonf("Could not find the TOTP key in the internal context. This is a code bug and should be reported to https://github.com/ory/kratos/."))
178178
}
179179

180180
key, err := otp.NewKeyFromURL(keyURL)

0 commit comments

Comments
 (0)