Firesphere

What you could do there, is register your own Security class and return a valid json. That should be fairly straight forward

Firesphere

Yeah, that's expected.... The Security implementation expects a step A-B system, not a JSON

StefGuev

The results of responseText is an html page oups

Firesphere

Sorry buddy, not my choice either, but it works for the OSS team 🙂

Firesphere

You could have a look at the MFA module just released, to see how they do it. Warning, it is all React, so it's a tad convoluted, but the end-result should be the same

StefGuev

I check that. Using console.log(data) is enough to see all ajax return I think

Firesphere

So, if you want to handle that with ajax, that should work just fine, as long as it's a post

Firesphere

URLSegment is Security/LoginForm/Default and it's popped to LoginForm