SMARAM Posted November 12, 2019 Share Posted November 12, 2019 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 More sharing options...
SMARAM Posted November 13, 2019 Author Share Posted November 13, 2019 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 More sharing options...
Hayri ASLAN Posted November 13, 2019 Share Posted November 13, 2019 Instead of calling on before login, call onaftershow and set modalresult true based on response Link to comment Share on other sites More sharing options...
SMARAM Posted November 14, 2019 Author Share Posted November 14, 2019 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now