James Pence
Joined
Dec 11, 2024
Last seen
Dec 19, 2024
James Pence's Comments
-
-
The solution I came to was checking in the toWaterholeUser function before returning the PendingUser. If there is no waterholeUser then I add the waterholeUser with the proper roles based on the permissions from the regular application's "spatie/laravel-permission" system.
-
In reply to Gabriel SilvaGabriel Silva
Dec 12, 2024 Hi @James Pence, Have you closely followed the integration docs for authentication? It seems it gets you covered here: https://waterhole.dev/docs/main/laravel#authentication Cheers,I did and the toWaterholeUser function is getting the values to populate the form, but the form is still showing and expecting the Create Account submission button to be pressed to actually add the user to the waterhole users table.
I created a simplified pair of models in my namespace WaterholeUser and WaterholeRole. they correspond to User and Group within waterhole.
I also have permissions of "forum_use", and "forum_manage" assigned to roles in the main app.