Make inactive user active during standard login

0
Hi all,   I want to make it possible to make an inactive user active when the user is logging in via a sign-in-page. It seems that doing this via an ASU-microflow is not possible, as after startup of the app the currentUser is not known yet. Also I cannot find a location to define an After SignIn-microflow (as suggested by ChatGPT ...).   My app has Security level Production and anonymous users are allowed. No SSO has been implemented and the app has a Responsive web- and Phone web-navigation profile.   How can activate an inactive user during the signin-proces via a sign-in page?   Regards, René
asked
3 answers
0

Dear René van der Meer,

 

If you want to achieve something after signin, follow the below steps;

 

1. Create AfterSignin Microflow and code your logic.

2. Create one home microflow flow, which calls home page.

3. Now call the aftersignin microflow in home microflow in task queue if background execution is required.

4. Set the home microflow as default home page or role based home page.

 

Hope my answer helps. Reach me out for any queries.

answered
0

Hi Abishek,

 

1. This is not applicable, as the intention is that if a specific inactive user wants to login, at that moment the app must make that user active

2. It is unclear for me where I can call a microflow before login:

- in an AfterStartup-microflow, the currentUser is not available yet, so the user cannot be made active

- In App >>> Settings > Runtime there is not possibility to specify an AfterSignin-microflow

- In App >>> Security, also no AfterSignin-microflow can be specified

 

So , summarized, it seems to me that there is no way to make a user active when he/she is in the process of logging in via the standard login-page.

 

Any thoughts on your side?

 

Regards, René

answered
0

Dear Rene,

 

1. You can call the microflow through a nanoflow with signin activity, if using custom login page.

2. If using login.html then try to call the microflow on signin button click through js using mendix client api.

 

FYR- Medium and Client API | Mendix Documentation

 

Hope my answer helps. Reach me out for any queries.

answered