Jump to content
GBS-IT

SSPR - AJAX - Asynchronous Requests

Recommended Posts

Hi,

We currently present the Password Reset portal externally through an f5 and have brute force protection on PIN Validation attempts, on failure we (the f5) TRY to* (edit) inject CAPTCHA into the responses.

But they don't work properly and are unusable.

 

Now please excuse my ignorance of coding or web page development (I have no idea what the meaning of this is or what the impact is to the Password Rest Portal site\function).

The f5 product development team have come back saying that their Single Page Architecture (SPA) features only supports Asynchronous AJAX requests.

Their Response:

 

The "Step 2:Verify" page triggers an AJAX request (/account/LoginTempPincode) when user submits a PIN Number after clicking the "Next" button. Following code also suggest request for "/account/LoginTempPincode" is AJAX synchronous request.

===================================================

$.ajax({

                url: "/account/LoginTempPincode",

                data: { Username: myUserID, PinNumber: myPinNumber, setPin: $('#mykey').val(), FirstName: $('#FirstName').val(), Surname: $('#Surname').val() },

                dataType: "json",

                type: "POST",

                async: false,    <<<<===================================== tweak this to true (i.e. asynchronous)

                success: function (data) {

                    if (data.Success) {

                        $msg.hide();

                        window.location.href = '/Account/Reset';

===================================================

 

Tweaking "async: false" to "async: true" is expected to address this specific issue.

2020-01-20 09_56_16-Password Reset.jpg

Edited by GBS-IT
wording

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...