Enabling OTP for user with specific attribute
There is a requirement where users with specific attirbute, i.e. access group, division, etc. to use OTP for login. I was thinking to use OOTB OTP where Pega sends OTP code via email to the user and user needs to authenticated using OTP after user/password authentication.
I created new Authentication Service with Post-authentication activity which calls pzHandleMFA. However, it all ways ends up showing screen with message "Verification code could not be sent to you by email or text. Please contact your administrator for assistance."
It would be appreciated if anyone done something similar can give me suggestions.