I am planning to create pages which are accessable only after login and to certain users.
For example:
User ‘Alex’ logs in and gets forwarded to ‘user.php’ which gets configured to Alex
User ‘Julia’ logs in and gets forwarded to ‘user.php’ which gets configured to Julia
…
Can this be done with Grav in conjunction with the already available login plugin? I am new to Grav, just been through the installation routines and now evaluating if it can fulfil the requirements.
Yes this can be done. I suggest you install the Admin Plugin as it includes the Login Plugin (currently v 1.0.2), Create your user accounts allowing them site access and set the Login Plugin option ‘Redirect after login’ to point to the users page. Note that this can or should be a normal page you create in Grav, not a php file like ‘user.php’. In the user page’s template you can find out which user is logged in using the Twig variable “grav.user.username”.