Impossible to login User after changing his user_type custom field

Hi all,

I’m Ben and I’m facing a login issue.
After creating a custom field “user_type” in the User Data type taking an option set as value (user, admin, …) I change it from admin dashboard in order to change user role depending on each user of my app.
After this change I noticed that I can’t login with the user concerned in my app anymore (I checked the console : “Log the user in” workflow retrieve the good user with good email and good unique id but all other data are empty. In database the data are filled well).

I tried also to change the user_type field directly from database but same issue.

Something weird : when I put the admin role to the user concerned by the change I can log to my app as admin but it’s not working for others roles.

user_type field :
image

the different option set as user_type values :
image

Has someone ever had this type of issue ?

Many thanks

Ben

Hi there, @factory-club… I don’t fully understand your post, and it might help if you could share screenshots of your login workflow and the data in the database so we can get some more context. But, for what it’s worth and because you are talking about users, it simply never hurts to make sure Bubble’s default privacy rule on the User data type isn’t getting in the way somehow. I have no idea if that is the case here because, again, I don’t necessarily understand your issue… but like I said, it never hurts to check that one.

Best…
Mike

Hello @mikeloc , thanks for your answer and sorry for the unclear explanations (my English is not very exact cause I’m french).

You were rights I was blocked by Privacy rules. I think I should look some Privacy rules tutorials :grin:

Again thank you for your answer @mikeloc !

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.