Newly created user doesnt have user role

0
Hi guys, I'm making an application and I want users to register and login before using the app. For that I manually created a registration form and login page. Once registered, my newly created user doesn't seem to have any user roles attached to it (see image). How can I automatically attach a user role to someone who registered?
asked
3 answers
0

Hi Derek,

You can retrieve the userRole you want from the database. In the Xpath you can use something like [id = '[%UserRole_User%]'], where User is the name of your role.

Then you can do a change of your account and set the association UserRoles with the role you just retrieved.

Hope this helps!

 

answered
0

Hi Derek,

Given the UX you are going for, I recommend you check out the AutoLogin module. You have to establish the user account and change from Anonymous to a User Role, so the AutoLogin module is what you are looking for. Otherwise you just are assigning the role but then they get kicked back to the login page to authenticate.

https://appstore.home.mendix.com/link/app/107925/

 

answered
0

Is this what you meant @Johan?

answered