-
Notifications
You must be signed in to change notification settings - Fork 174
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
Prevent unlogged rendering #451
Prevent unlogged rendering #451
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see we are still rendering the anonymous content. If possible, could we just render nothing and redirect to login page?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see my comments
…revent-unlogged-rendering # Conflicts: # core/src/navigation/TopNav.html
* Add ‘isHidden’ prop to Authorization component * Render TopNav only if needed
Description
✔️ Tested with all combinations of
auth.use
,auth.disableAutoLogin
and login state.Changes proposed in this pull request:
isHidden
attribute to Authorization component which makes it not render anything, just fireonCreate
hook (and proceed autologin)Related issue(s)