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

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.

×
×
  • Create New...