diff --git a/src/main/frontend/app/mfa/index.tsx b/src/main/frontend/app/mfa/index.tsx index b44a2218..61d07bc7 100644 --- a/src/main/frontend/app/mfa/index.tsx +++ b/src/main/frontend/app/mfa/index.tsx @@ -75,6 +75,7 @@ const MfaChallengePage: React.FC = ({ rawI18nMessages,raw {
+ , authentication: Authentication, request: HttpServletRequest, response: HttpServletResponse ) { try { - otpMfaVerifier.verifyMfaChallengeFor(authentication.name, mfaMethod, mfaChannel, MfaChallenge(mfaCode)) + val mfaChannel2 = mfaChannel.orElseGet { authentication.name } + otpMfaVerifier.verifyMfaChallengeFor(authentication.name, mfaMethod, mfaChannel2, MfaChallenge(mfaCode)) publisher.publishEvent(MfaSuccessEvent(authentication)) nextHopeLoginWorkflowSuccessHandler.onAuthenticationSuccess(request, response, authentication) } catch (e: Exception) {