Jump to content

How to HandleRequest on MainModule


SMARAM

Recommended Posts

Hi, I'm trying integrate my unigui app with another webapp where the user is already logged.

I created an javascript to authenticate and I'm calling in BeforeLogin like this. UniSession.AddJS('authenticate()').

I do the authentication in js function but I don't know how to send the request to MainModule.HandleRequest.

Any help?

 

Link to comment
Share on other sites

I found a way to get my request on MainModule.HandleRequest but as my webapp is SynchronousMode, I can't change the Handled to true in BeforeLogin.

I need something to call my javascript on BeforeLogin and get the result there so I can change Handled to true.

Link to comment
Share on other sites

14 hours ago, Hayri ASLAN said:

Instead of calling on before login, call onaftershow and set modalresult true based on response

Thanks for replying.

I thought I could do it on BeforeLogin because it could easier to implement.

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...