Custom Login

0
Question: I have a custom login setup in my application where a guest user logs in and creates a new account with a specific user role. However, after creating the account, the system redirects back to the login page instead of taking the user to the "User home page". To resolve this issue, I added a Java action to set cookies. Unfortunately, I'm encountering a NullPointerException in the Java action. Context: The microflow and Java action are as follows: Error Message: I suspect that the NullPointerException might be caused by trying to access the 'iUser' object in a new context before the database commit is completed. Can you please provide guidance on how to address this issue?
asked
1 answers
0

Hi Rakhi,

you fan use a nanoflow and then inside the nanoflow, 

call a microflow, which creates the account and commits it, now, in the nanoflow, use the login activity and enter the username and password set jn the microflow,

this way the newly created account will be logged in.

let me know, if you have any issues,

hope it helps!

answered