-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make a page accessible only for unregistered users? #179
Comments
Is this specific to multilanguage? |
On this registration page try putting this:
It won't stop access, but will make it 'invisible' to any navigation, or you could at least check |
Thank you for such a quick response. I successfully hide them from the menu) I would like to protect them from direct access by reference. After all, it's strange when an authorized user can open the registration page. |
What would you do? show a 404? redirect to another page? It's kinda hard to know what your workflow would be in this case.. You can just put a message, saying "already registered" if they are logged in and not show the form. |
Yeap, I need ability to redirect authorized user to home page. |
I think the best thing to do is to achieve this in Twig with this code:
This will redirect to the root of the site.. or you could put a I've modified the login plugin (soon to be released) to provide a base |
I want to hide login, register, forgot and reset pages from registered users.
I search info about this but do not found nothing.
The text was updated successfully, but these errors were encountered: