Skip to content

Commit

Permalink
find one bug fix: the method check only for mail while should check f…
Browse files Browse the repository at this point in the history
…or the input mfa method
  • Loading branch information
mrFlick72 committed Jul 21, 2024
1 parent 578c19a commit e69ff47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class DynamoMfaAccountMethodsRepository(
) : MfaAccountMethodsRepository {

override fun findOne(email: String, mfaMfaMethod: MfaMethod): Optional<MfaAccountMethod> =
Optional.ofNullable(findAll(email).find { it.method == MfaMethod.EMAIL_MFA_METHOD })
Optional.ofNullable(findAll(email).find { it.method == mfaMfaMethod})


override fun findAll(email: String): List<MfaAccountMethod> =
Expand Down

0 comments on commit e69ff47

Please sign in to comment.