OWA 2016 2FA with JavaScript integration not working when enter key is used on login page

book

Article ID: 170810

calendar_today

Updated On:

Products

VIP Enterprise Gateway

Issue/Introduction

When using OWA with JavaScript IA integration, clicking the submit link works but using "Enter" on the keyboard fails.

Resolution

Add the below code after: <script type="text/javascript"> 

 

$(document).ready(function() {
        $('#username, #password, #OTP, .signinTxt').keypress(function(e){
               //console.log("ENTER pressed...");
               if (e.which == 13 || e.keyCode == 13) {
                       vipAuth();
                       return false;
               }
        });
});