From 50782c68c77ce1c0d8c092678a6710e0be6fa18d Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Thu, 3 Mar 2022 18:14:24 +0100 Subject: [PATCH] fix(lookup): resolve credentials counting regression --- selfservice/strategy/lookup/settings.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfservice/strategy/lookup/settings.go b/selfservice/strategy/lookup/settings.go index 6a68bdd11982..370dd1e67b5d 100644 --- a/selfservice/strategy/lookup/settings.go +++ b/selfservice/strategy/lookup/settings.go @@ -318,7 +318,7 @@ func (s *Strategy) identityHasLookup(ctx context.Context, id uuid.UUID) (bool, e return false, err } - count, err := s.CountActiveFirstFactorCredentials(confidential.Credentials) + count, err := s.CountActiveMultiFactorCredentials(confidential.Credentials) if err != nil { return false, err }