Is it possible to use kirby’s user authentication and then redirect specific users to specific urls?
I tried the following using the user.login:after hook, but I get an error on the login page saying “Invalid login”.
Yes they are panel users, and I already defined a role called “client”.
As first step I was going to implement it using the panel login view, maybe later I’ll add a custom login form.
I forgot: the users with the client role shouldn’t have any access to the panel at all but only be redirected.
I think you can’t do this from a hook, because a hook doesn’t return anything. If you implement a frontend login, you will be able to achieve what you want.