Question
1
Replies
129
Views
Posted: August 14, 2019
Last activity: August 15, 2019
Closed
modal dialog to prompt for OTP from login
I need to be able to call a modal dialog to prompt the user logging in for the OTP password sent to their email. The user has been validated from LDAP and the OTP sent to the user at this point, but the user is not totally authenticated yet. How can this be accomplished?
***Edited by Moderator Marissa to update platform capability tags****
Assuming that you are redirecting the correctly authenticated user to a screen based on his LDAP credentials, on the screen that is being loaded, you could put a jQuery function to launch the modal when the document/screen is ready...
$(document).ready(function() {
pega.u.d.processAction(<lookup the api on your own and pass the right parameters to launch modal>);
} );