JavaAction for SignIn

0
Hi,   I want to create a custom java action for signing in.   Please provide the coding as it takes two input username and password. It is urgently required. Please help
asked
3 answers
1

Hello Harshraj,

 

You can use the below method to perform login.

 

https://apidocs.rnd.mendix.com/9/runtime/com/mendix/core/Core.html#login(java.lang.String,java.lang.String)

 

answered
1

In addition to S C Chengaiah’s answer, if you don't need to run this from a Microflow you may find it easier to instead use the SignIn JavaScript action in the Nanoflow Commons module and call this directly from a Nanoflow. 

https://docs.mendix.com/appstore/modules/nanoflow-commons/

answered
0

Hi Harshraj Singh,

                  I’ve achieved this custom login feature by using the Sign in JavaScript action. Call the nanoflow action from the login button then use the sign in JS action. Please find the attachment for you refference.

 

Thanks & Regards
Dinesh Gunasekaran

answered