Hi Mami,
In the console, I can see the message that the user is unknown. So the registration did not fully succeed. Maybe it is in the different entities you are using. What are the anonymous and unknownuserenitity. And has the entity you use for your accounts a generalization of system. user or Administration.user?
Hey Mami!
Taking into account your last comment the problem that you currenly have is that you are creating an object of the UnknownUserEntity that doesn't allow the user to log in.
To allow the user to log in, a user object or account or a generelization of them should be created. Normally in these cases what we usually do is to create a NP entity in your case UnknownUserEntity to collect the info of the login form ( as the anonymous user shouldn't be able to interact with the user/account entity directly) and then on the microflow that is trigger on the save, create for example an account with the info that is contained in the UnknownUserEntity.
Hope this helps you to understand how this part works
Kind regards,
Emilio
I'm gonna show you a simple example of the flow:
You should receive the unknow entity as paremeter and within the flow a create activity to create the new account for the log in. On that create activity you should fill the attributes:
You need to take into account that the user is going to use the Name and the password to access the application.
Hi Mami,
You have to create a custom login page when using anonymous users. Ryan's post on it you can find here:
https://www.mendix.com/blog/enabling-security-and-adding-a-login-page/https://www.mendix.com/blog/enabling-security-and-adding-a-login-page/
This will do the trick. I don't know what is causing your problem, but when following the steps exactly, it can't fail.
Go Make It